Implements a Windows message.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Gets or sets the window handle of the message.
Specifies the LParam field of the message.
Gets or sets the ID number for the message.
Specifies the value that is returned to Windows in response to handling the message.
Gets or sets the WParam field of the message.
|Create(IntPtr, Int32, IntPtr, IntPtr)|
Creates a new.
Determines whether the specified object is equal to the current object.(Overrides ValueType.Equals(Object).)
Returns the hash code for this instance.(Overrides ValueType.GetHashCode().)
Gets the LParam value and converts the value to an object.
You cannot create the Create method. For the sake of efficiency, the uses its pool of existing s instead of instantiating a new one, if possible. However, if a is not available in the pool, a new one is instantiated.directly. Instead, use the
The following code example demonstrates overriding the WndProc method to handle operating system messages identified in the . The WM_ACTIVATEAPP operating system message is handled in this example to know when another application is becoming active. For information about the available Message.Msg, Message.LParam, and Message.WParam values, see the MSG Structure documentation. For information about the actual constant values, see Message Constants.
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.