Gets or sets the shortcut keys associated with the ToolStripMenuItem.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Use the property to assign a key combination to a menu command, such as CTRL+C for the Copy command. You can use shortcut keys instead of or in addition to access keys, which are underscored letters in menus or menu items used with the ALT key. Define access keys in code by typing an ampersand (&) before the letter you want to use for an access key.
The following code example demonstrates how to use the property to assign the key combination CTRL+P to a menu item called printToolStripMenuItem. For the complete example, see How to: Add Web Browser Capabilities to a Windows Forms Application.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.