Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extending a native property
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00859555
Message ID:
00859681
Vues:
16
You should be able to subclass the control and override the protected method OnVisibleChanged. Remember to call the base.OnVisibleChanged.

Something like this:
protected override void OnVisibleChanged(EventArgs e)
{
//put your code here if you want it to run BEFORE the event handlers are called
   base.OnVisibleChanged(e);
//put your code here if you want it to run AFTER the event handlers are called
}
>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, so it looks like establishing a handler for the VisibleChanged event is my only option in this case. Nothing wrong with this, just exploring different ways of skinning the cat...
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform