Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My userControl property
Message
De
12/01/2005 11:55:44
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00976394
Message ID:
00976448
Vues:
8
This message has been marked as a message which has helped to the initial question of the thread.
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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform