This documentation is archived and is not being maintained.

Control.HandleDestroyed Event

Occurs when the control's handle is in the process of being destroyed.

[Visual Basic]
Public Event HandleDestroyed As EventHandler
public event EventHandler HandleDestroyed;
public: __event EventHandler* HandleDestroyed;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type EventArgs.


During the HandleDestroyed event, the control is still a valid Windows control and the Handle can be recreated by calling the RecreateHandle method.

For more information about handling events, see Consuming Events.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Control Class | Control Members | System.Windows.Forms Namespace | OnHandleDestroyed | Handle | IsHandleCreated | RecreateHandle