Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/01/2009, 08:36
Javichechu
 
Fecha de Ingreso: junio-2007
Mensajes: 327
Antigüedad: 16 años, 11 meses
Puntos: 0
Respuesta: Propiedad personalizada en un controlWeb pesonalizable

Pues por ejemplo para que salga, con el overrides lo hado así:
Código:
< _
        Bindable(True), _
        Category("Appearance"), _
        DefaultValue(""), _
        Description("Ruta de la imagen que cargará el botón como fondo") _
    > _
    Public Overrides Property imageurl() As String
        Get
            Return ImgBoton
        End Get
        Set(ByVal value As String)
            value = ArreglarRutaImagen(value)
            ImgBoton = value
        End Set
    End Property
Pero en general las propiedades las hago así:

Código:
< _
        Bindable(True), _
        Category("Appearance"), _
        DefaultValue(""), _
        Description("Especifica la ruta de imágen para la esquita superior izquierda") _
    > _
Public Property ImagenEsquinaSupIzq() As String
        Get
            Return sImagenEsquinaSupIzq
        End Get
        Set(ByVal value As String)
            sImagenEsquinaSupIzq = value
        End Set
    End Property