This documentation is archived and is not being maintained.
Control.DestroyHandle Method
.NET Framework 1.1
Destroys the handle associated with the control.
[Visual Basic] Protected Overridable Sub DestroyHandle() [C#] protected virtual void DestroyHandle(); [C++] protected: virtual void DestroyHandle(); [JScript] protected function DestroyHandle();
Remarks
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.
Requirements
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:
- SecurityPermission for inheriting classes to call unmanaged code. Associated enumeration: SecurityPermissionFlag.UnmanagedCode
- SecurityPermission for the immediate caller to call unmanaged code. Associated enumeration: SecurityPermissionFlag.UnmanagedCode
See Also
Control Class | Control Members | System.Windows.Forms Namespace | CreateHandle | Handle | RecreateHandle
Show: