Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set DefaultValue for a color
Message
From
20/06/2007 11:49:25
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
How to set DefaultValue for a color
Miscellaneous
Thread ID:
01234513
Message ID:
01234513
Views:
58
I'm trying to set the DefaultValue for a property in a custom control but cant figure out how to set it for a color.
<Category("Thumbnail Pannel"), _
           Description("Back Color of Selected Thumbnail"), _
           DefaultValue(System.Drawing.Color.Blue)> _
       Public Property SelectedThumbBackColor() As Color
I get an error "Constant expression expected".
Anyone know how to set this up for a color?

Thanks
Brian Grant
Next
Reply
Map
View

Click here to load this message in the networking platform