Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sends a message to the message window and waits until the WndProc method has processed the message.
Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in microsoft.windowsce.forms.dll)
Syntax
'Declaration
Public Shared Sub SendMessage ( _
ByRef m As Message _
)
'Usage
Dim m As Message
MessageWindow.SendMessage(m)
public static void SendMessage (
ref Message m
)
public:
static void SendMessage (
Message% m
)
public static void SendMessage (
/** @ref */ Message m
)
Not applicable.
Parameters
- m
A Windows-based message.
Remarks
The .NET Compact Framework provides the Message structure for generating Windows-based messages.
Example
The following code example generates Windows-based messages in on override of the OnMouseMove method. Every time the mouse moves, or whenever there is a tap, this method generates a Windows-based message with the X and Y mouse coordinate values occupying the WParam and LParam parameters. This code example is part of a larger example provided for the MessageWindow class.
Dim msg As Microsoft.WindowsCE.Forms.Message = _
Microsoft.WindowsCE.Forms.Message.Create(MsgWin.Hwnd, _
MsgWindow.WM_CUSTOMMSG, New IntPtr(e.X), New IntPtr(e.Y))
MessageWindow.SendMessage(msg)
Message msg = Message.Create(MsgWin.Hwnd,
MsgWindow.WM_CUSTOMMSG,
(IntPtr)e.X,
(IntPtr)e.Y);
MessageWindow.SendMessage(ref msg);
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