Sorry, Einar ... my bad. It should be [DefaultValue].
~~Bonnie
>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