Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extending a native property
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00859555
Message ID:
00859681
Views:
17
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...
>
Previous
Reply
Map
View

Click here to load this message in the networking platform