Color property for a usercontorl... how do you define a default value.
I have a TitleColor property declared in my usercontrol. I can't apply the DefaultValue attribute to my property however because it says the color value is not constant:
VB Code:
<DefaultValue(Color.Beige)> _
Public Property TitleColor() As Color
Get
End Get
Set(ByVal Value As Color)
End Set
End Property
how do I get around this because I know it is possible. If you change a color value of a windows form then right click on the color in the properties window, there is a Reset option available... so there must be a way to set the default value, but how :D