ProcessShortcut Method (NCommandManager)
In This Topic
Processes a keyboard shortcut combination. The search begins within the context collection and if a valid shortcut is found the Execute() method is called and the manager is told that the event is processed. Then the search begins for every avalilable command. If a valid shortcut is fount the PerformClick() method is called.
Syntax
'Declaration
Public Function ProcessShortcut( _
ByVal As System.Windows.Forms.KeyEventArgs _
) As System.Boolean
'Usage
Dim instance As NCommandManager
Dim e As System.Windows.Forms.KeyEventArgs
Dim value As System.Boolean
value = instance.ProcessShortcut(e)
public System.bool ProcessShortcut(
System.Windows.Forms.KeyEventArgs
)
Parameters
- e
- The KeyEventArgs to examine.
Return Value
True if a valid shortcut was found, false otherwise.
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