Preprocesses keyboard or input messages within the message loop before they are dispatched.
Syntax
Visual Basic (Declaration) | |
---|
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
<SecurityPermissionAttribute(Flags=SecurityPermissionFlag.UnmanagedCode,
Assertion=False,
UnmanagedCode=True,
SkipVerification=False,
Execution=False,
ControlThread=False,
ControlEvidence=False,
ControlPolicy=False,
SerializationFormatter=False,
ControlDomainPolicy=False,
ControlPrincipal=False,
ControlAppDomain=False,
RemotingConfiguration=False,
Infrastructure=False,
BindingRedirects=False,
Action=SecurityAction.Demand Or _
SecurityAction.Deny Or _
SecurityAction.LinkDemand,
Unrestricted=False)>
Public Function PreProcessControlMessage( _
ByRef msg As Message _
) As PreProcessControlState |
C# | |
---|
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
[SecurityPermissionAttribute(Flags=SecurityPermissionFlag.UnmanagedCode,
Assertion=false,
UnmanagedCode=true,
SkipVerification=false,
Execution=false,
ControlThread=false,
ControlEvidence=false,
ControlPolicy=false,
SerializationFormatter=false,
ControlDomainPolicy=false,
ControlPrincipal=false,
ControlAppDomain=false,
RemotingConfiguration=false,
Infrastructure=false,
BindingRedirects=false,
Action=SecurityAction.Demand |
SecurityAction.Deny |
SecurityAction.LinkDemand,
Unrestricted=false)]
public PreProcessControlState PreProcessControlMessage(
ref Message msg
) |
C++/CLI | |
---|
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
[SecurityPermissionAttribute(Flags=SecurityPermissionFlag.UnmanagedCode,
Assertion=false,
UnmanagedCode=true,
SkipVerification=false,
Execution=false,
ControlThread=false,
ControlEvidence=false,
ControlPolicy=false,
SerializationFormatter=false,
ControlDomainPolicy=false,
ControlPrincipal=false,
ControlAppDomain=false,
RemotingConfiguration=false,
Infrastructure=false,
BindingRedirects=false,
Action=SecurityAction.Demand |
SecurityAction.Deny |
SecurityAction.LinkDemand,
Unrestricted=false)]
public:
PreProcessControlState PreProcessControlMessage(
% 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: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also