Version

Shortcut Property

Gets or sets a value indicating the shortcut key associated with the menu item.
Syntax
'Declaration
 
Public Property Shortcut As Shortcut
public Shortcut Shortcut {get; set;}

Property Value

One of the System.Windows.Forms.Shortcut values. The default is Shortcut.None.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe assigned value is not one of the System.Windows.Forms.Shortcut values.
Requirements

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

See Also