MessageWindow.Hwnd Property

Gets the handle of the message window.

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

public IntPtr Hwnd { get; }
/** @property */
public IntPtr get_Hwnd ()

public function get Hwnd () : IntPtr

This property returns the handle of the message window, and is used for creating Windows-based messages to identify the handle the message is sent to.

The following code example creates and sends a Windows-based message. The first parameter for the Create method is the handle ( Hwnd ) to the message window, which in this case is the handle to MsgWin, an instance of a derived class from MessageWindow. This code example is part of a larger example provided for the MessageWindow class.

Message msg = Message.Create(MsgWin.Hwnd,
MessageWindow.SendMessage(ref msg);

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Compact Framework

Supported in: 2.0, 1.0