Preprocesses keyboard or input messages within the message loop before they are dispatched.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function PreProcessMessage( _
ByRef msg As System.Windows.Forms.Message _
) As System.Boolean |
| C# | |
|---|
public System.bool PreProcessMessage(
ref System.Windows.Forms.Message msg
) |
Parameters
- msg
- A System.Windows.Forms.Message, passed by reference, that represents the message to process. The possible values are WM_KEYDOWN, WM_SYSKEYDOWN, WM_CHAR, and WM_SYSCHAR.
Return Value
true if the message was processed by the control; otherwise, false.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also