Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide BorderStyle
Message
 
À
01/10/2009 19:42:08
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01427185
Message ID:
01427746
Vues:
41
>>I'm creating a user control. Is it possible to hide the control's BorderStyle property?
>
>Kevin, you need to use the [Browsable(false)] attribute. The BorderStyle property is not virtual however, so you'll need to specify it like this:
>
>
>[Browsable(false)]
>public new BorderStyle BorderStyle
>{
>	get { return base.BorderStyle; }
>	set { base.BorderStyle = value; }
>}
>
>
>~~Bonnie


Ok, I added this property to my class, except I made it private, and I can still see and set the property in the prop sheet.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform