TechnoTone
Junior Contributor
I have a custom control with a public color property that I'd like to set the defaultvalue attribute for but as color is an object it cannot be used as a defaultvalue. Is there a way to specify a color as a constant? Is there another way to set the defaultvalue attribute of a color public property?
Here is my code (I've highlighted the problem):
Here is my code (I've highlighted the problem):
Visual Basic:
'
<Description("The color used to display the sort icon in the control."), _
Category("Appearance"), _
Localizable(True), _
DefaultValue([u][color=red]Color.Blue[/color][/u])> _
Property IconColor() As Color