Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DefaultValue for Color property
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
DefaultValue for Color property
Miscellaneous
Thread ID:
01023484
Message ID:
01023484
Views:
65
I am having some problems assigning a DefaultValue to my Color property. This code compiles, but I get an error when I try to reset the LightBrush property in the property sheet.
private System.Drawing.Color _LightBrush;
[
Category("Appearance"),
Description("basically the color of the LED segments"),
DefaultValue(typeof(System.Drawing.Color))
]
public System.Drawing.Color LightBrush
{
	get{return _LightBrush;}
	set{_LightBrush = value;}
}
I noticed that DefaultValue() has an overload that takes two arguments, but I am having trouble with the syntax.
Any help would be appreciated.

Thanks,
Einar
Semper ubi sub ubi.
Next
Reply
Map
View

Click here to load this message in the networking platform