GH_MenuShortCutWrapper

public sealed class GH_MenuShortCutWrapper
Utility class for handling menu shortcuts in non-modal Windows.Forms dialogs.

Methods

GenerateShortcutCommand

#
public static bool GenerateShortcutCommand(Keys keyCode, ToolStrip menu)
Call this function to test all menu items for short-cut matches. If the shortcut key-combo in the keyCode enumeration can be matched to a menu item, the PerformClick() method on that item will be called. Disabled and hidden items will be skipped entirely.
keyCode (Keys)Short cut key code
menu (ToolStrip)Any toolstrip containing menu items.
True if a menu item was activated, false otherwise.