No puedo especificar un color de Fondo como Predeterminado para un Componente (Label)

25/06/2005 - 18:15 por Daniel R. Rossnagel | Informe spam
Ejemplo
Private ColorFondo As System.Drawing.Color = Color.Transparent
<DefaultValue(GetType(System.Drawing.Color), ColorFondo)> _
Public Overrides Property backcolor() As System.Drawing.Color
Get
End Get
Set(ByVal Value As System.Drawing.Color)
End Set
End Property



Me dice que se Requiere una Exprecion constante en (ColorFondo), Alguna
Idea,
Desde ya gracias.

Preguntas similare

Leer las respuestas

#1 Eduardo A. Morcillo [MS MVP VB]
25/06/2005 - 23:52 | Informe spam
Coloca el color como un String:

<DefaultValue(GetType(System.Drawing.Color), "Red")>

Eduardo A. Morcillo [MS MVP VB]
http://www.mvps.org/emorcillo
#2 Daniel R. Rossnagel
27/06/2005 - 15:46 | Informe spam
Anda a la Perfecion Gracias Mil


"Eduardo A. Morcillo [MS MVP VB]" <emorcillo .AT. mvps.org> escribió en el
mensaje news:
Mostrar la cita
Ads by Google
Search Busqueda sugerida