MessageWindow.Dispose Method

Releases all resources used by the MessageWindow.

Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in microsoft.windowsce.forms.dll)

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As MessageWindow

instance.Dispose
public void Dispose ()
public:
virtual void Dispose () sealed
public final void Dispose ()
public final function Dispose ()
Not applicable.

Remarks

Call Dispose when you are finished using the MessageWindow. The Dispose method leaves the MessageWindow in an unusable state. After calling Dispose, you must release all references to the MessageWindow so the garbage collector can reclaim the memory that the MessageWindow was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

Note

Always call Dispose before you release your last reference to the MessageWindow. Otherwise, the resources it is using will not be freed until the garbage collector calls the MessageWindow object's Finalize method.

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Compact Framework

Supported in: 2.0, 1.0

See Also

Reference

MessageWindow Class
MessageWindow Members
Microsoft.WindowsCE.Forms Namespace