Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Control.Dispose Method

Releases all resources used by the Control.

Overload List

Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Overrides Protected Sub Dispose(Boolean)
[C#] protected override void Dispose(bool);
[C++] protected: void Dispose(bool);
[JScript] protected override function Dispose(Boolean);

[To be supplied.]

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub Dispose() Implements IDisposable.Dispose
[C#] public virtual void Dispose();
[C++] public: virtual void Dispose();
[JScript] public function Dispose();

See Also

Control Class | Control Members | System.Windows.Forms Namespace

Show:
© 2015 Microsoft