Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extending a native property
Message
De
17/12/2003 01:07:58
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00859555
Message ID:
00859781
Vues:
16
>i>>>For some reason, I was associating the "override" kewyord strictly with methods, and hadn't thought of applying it to properties (duh!).<

Well, I never have applied it to properties either, but it dawned on me (as Rick also said) that properties are really just methods, so I figured it'd be no problem to override them.

>>However, the property I was trying to work with is the Visible property, and it appears that it wasn't defined Virtual in the control base class<

And as Dave replied, you can get around that by overriding the OnVisibleChanged(), which I hadn't thought of either. Learn something new everyday. =)

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform