Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My userControl property
Message
 
To
12/01/2005 11:24:05
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00976394
Message ID:
00976447
Views:
7
Bonnie,
I am unable to use the [Default] attribute. Maybe I misunderstood. Here is my code:
[Description("something here")]
[Default(true)]
public bool ValidateEachElement
{
	get {return this._ValidateEachElement;}
	set {this._ValidateEachElement = value;}
}
Could you please let me know what the correct syntax should be? I could not find this information in the M$ docs, if you know where this is please let me know.

Thanks,
Einar


>You're welcome, Einar. As far as it being bold in the property sheet ... it seems that it is, but in the testing I just did, it seemed to depend on the data type of the property (a string was bold, an integer was not ... go figure). If you set a default value for your property (using the [Default] attribute, just as I showed you how to use the [Description] attribute in my previous post), you can reset the property to it's default and it will not show as bold ... but I agree that it's not good for it to show as bold when you initially drop it on the IDE.
>
>Could be a bug or maybe there's something I'm missing.
>
>~~Bonnie
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform