You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 192906e
Browse filesBrowse the repository at this point in the historyBrowse files
For information on adding resources to managed projects, see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*.
11
+
12
+
## Predefined Accelerator Keys
9
13
10
14
There are a number of predefined accelerator keys that may be part of a Windows application project. Some of these virtual keys are for the Windows environment. Other support browsers or Unicode applications. You can use any of these keys in any accelerator.
11
15
@@ -52,7 +56,7 @@ There are a number of predefined accelerator keys that may be part of a Windows
52
56
|VK_OEM_MINUS|Windows: For any country/region, the '-' key|
53
57
|VK_OEM_PERIOD|Windows: For any country/region, the '.' key|
54
58
|VK_OEM_PLUS|Windows: For any country/region, the '+' key|
55
-
|VK_PACKET|Windows: Used to pass Unicode characters as if they were keystrokes.|
59
+
|VK_PACKET|Windows: Used to pass Unicode characters as if they are keystrokes.|
56
60
|VK_RCONTROL|Right CONTROL key|
57
61
|VK_RMENU|Right MENU key|
58
62
|VK_RSHIFT|Right SHIFT key|
@@ -63,7 +67,9 @@ There are a number of predefined accelerator keys that may be part of a Windows
63
67
|VK_XBUTTON1|Windows: X1 mouse button|
64
68
|VK_XBUTTON2|Windows: X2 mouse button|
65
69
66
-
For information on adding resources to managed projects, please see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*.
70
+
## Associating an Accelerator Key with a Menu Item
71
+
72
+
Many times, you want a menu item and a keyboard combination to issue the same program command. You do this by assigning the same resource identifier (ID) to the menu item and to an entry in your application's accelerator table. You then edit the menu item's caption to show the name of the accelerator. For more information on menu items and accelerator keys, see [Associating a Menu Item with an Accelerator Key](../windows/associating-a-menu-command-with-an-accelerator-key.md).
0 commit comments