Preprocesses keyboard or input messages within the message loop before they are dispatched.
'Declaration
Public Overrides Function PreProcessMessage( _
ByRef As Message _
) As Boolean
public override bool PreProcessMessage(
ref Message
)
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.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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