NativeWindow.Finalize Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Releases the resources associated with this window.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

Protected Overrides Sub Finalize

The Finalize method removes the Win32 derived class associated with the current NativeWindow instance, releases the handle, and posts a WM_CLOSE message to the associated window.

.NET Framework
Available since 1.1
Return to top