Allows derived classes to modify the default behavior of the HandleDestroyed event.
Visual Basic .NET Overrides Protected Sub OnHandleDestroyed( _
ByVal e As EventArgs _
C# protected override void OnHandleDestroyed(
Managed C++ protected: void OnHandleDestroyed(
e System.EventArgs. The EventArgs object that contains the event data.
Raising an event invokes the event handler through a delegate.
The OnHandleDestroyed method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
When overriding this method in a derived class, call the OnHandleDestroyed method of the base class so that registered delegates receive the event.