Preprocesses keyboard or input messages within the message loop before they are dispatched.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function PreProcessControlMessage( _
ByRef msg As System.Windows.Forms.Message _
) As System.Windows.Forms.PreProcessControlState |
| C# | |
|---|
public System.Windows.Forms.PreProcessControlState PreProcessControlMessage(
ref System.Windows.Forms.Message msg
) |
Parameters
- msg
- A System.Windows.Forms.Message that represents the message to process.
Return Value
One of the
System.Windows.Forms.PreProcessControlState values, depending on whether
System.Windows.Forms.Control.PreProcessMessage(System.Windows.Forms.Message@) is true or false and whether
System.Windows.Forms.Control.IsInputKey(System.Windows.Forms.Keys) or
System.Windows.Forms.Control.IsInputChar(System.Char) are true or 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