System.Windows.Forms.ToolStripManager.IsValidShortcut Method

Retrieves a value indicating whether a defined shortcut key is valid.

Syntax

public static bool IsValidShortcut (Keys shortcut)

Parameters

shortcut
The shortcut key to test for validity.

Returns

true if the shortcut key is valid; otherwise, false.

Remarks

Valid shortcut keys are the function keys F1 through F12 alone; function keys with CTRL, ALT, or SHIFT modifiers; or other keys with CTRL, ALT, or SHIFT modifiers. CTRL, ALT, or SHIFT keys and keys other than function keys are not valid shortcut keys if used alone.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0