This documentation is archived and is not being maintained.

Control.DestroyHandle Method

Destroys the handle associated with the control.

[Visual Basic]
Protected Overridable Sub DestroyHandle()
protected virtual void DestroyHandle();
protected: virtual void DestroyHandle();
protected function DestroyHandle();


Notes to Inheritors:  When overriding DestroyHandle in a derived class, be sure to call the base class's DestroyHandle method to ensure that the handle is destroyed.


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

.NET Framework Security: 

See Also

Control Class | Control Members | System.Windows.Forms Namespace | CreateHandle | Handle | RecreateHandle