Dispose Method (Boolean)
Collapse the table of content
Expand the table of content

WindowsFormsHost.Dispose Method (Boolean)


Releases the unmanaged resources used by the WindowsFormsHost, and optionally releases the managed resources.

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

Protected Overrides Sub Dispose (
	disposing As Boolean


Type: System.Boolean

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Calling the Dispose method disposes the base HwndHost and the Child control.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft