System.Windows.Forms.Message.Create Method

Creates a new System.Windows.Forms.Message.

Syntax

public static Message Create (IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam)

Parameters

hWnd
The window handle that the message is for.
msg
The message ID.
wparam
The message wparam field.
lparam
The message lparam field.

Returns

A System.Windows.Forms.Message that represents the message that was created.

Remarks

Use the Message.Create(IntPtr, int, IntPtr, IntPtr) method to create a System.Windows.Forms.Message to wrap a message sent by Windows.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0