NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Keys Enumeration

Specifies key codes and modifiers.

[Visual Basic]
Public Enum Keys
[C#]
public enum Keys
[C++]
public enum Keys

[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.

Remarks

This class contains constants to use for processing keyboard input. Keys are identified by key values, which consist of a key code and a set of modifiers combined into a single integer value. The four left digits of a key value contains the key code (which is the same as a Windows virtual key code). The four right digits of a key value contains modifier bits for the SHIFT, CONTROL, and ALT keys.

Members

Member Name Description
A The A key.
Add The Add key.
Alt The ALT modifier key.
Apps The Application key (Microsoft Natural Keyboard).
Attn The ATTN key.
B The B key.
Back The BACKSPACE key.
C The C key.
Cancel The CANCEL key.
Capital The CAPS LOCK key.
CapsLock The CAPS LOCK key.
Clear The CLEAR key.
Control The CTRL modifier key.
ControlKey The CTRL key.
Crsel The CRSEL key.
D The D key.
D0 The 0 key.
D1 The 1 key.
D2 The 2 key.
D3 The 3 key.
D4 The 4 key.
D5 The 5 key.
D6 The 6 key.
D7 The 7 key.
D8 The 8 key.
D9 The 9 key.
Decimal The Decimal key.
Delete The DEL key.
Divide The Divide key.
Down The DOWN ARROW key.
E The E key.
End The END key.
Enter The ENTER key.
ErEOF The ERASE EOF key.
Escape The ESC key.
Execute The EXECUTE key.
Exsel The EXSEL key.
F The F key.
F1 The F1 key.
F10 The F10 key.
F11 The F11 key.
F12 The F12 key.
F13 The F13 key.
F14 The F14 key.
F15 The F15 key.
F16 The F16 key.
F17 The F17 key.
F18 The F18 key.
F19 The F19 key.
F2 The F2 key.
F20 The F20 key.
F21 The F21 key.
F22 The F22 key.
F23 The F23 key.
F24 The F24 key.
F3 The F3 key.
F4 The F4 key.
F5 The F5 key.
F6 The F6 key.
F7 The F7 key.
F8 The F8 key.
F9 The F9 key.
G The G key.
H The H key.
Help The HELP key.
Home The HOME key.
I The I key.
Insert The INS key.
J The J key.
K The K key.
KeyCode The bit mask to extract a key code from a key value.
L The L key.
LButton The left mouse button.
LControlKey The left CTRL key.
Left The LEFT ARROW key.
LMenu The left ALT key.
LShiftKey The left SHIFT key.
LWin The left Windows logo key (Microsoft Natural Keyboard).
M The M key.
MButton The middle mouse button (three-button mouse).
Menu The ALT key.
Modifiers The bit mask to extract modifiers from a key value.
Multiply The Multiply key.
N The N key.
Next The PAGE DOWN key.
NoName A constant reserved for future use.
None No key pressed.
NumLock The NUM LOCK key.
NumPad0 The 0 key on the numeric keypad.
NumPad1 The 1 key on the numeric keypad.
NumPad2 The 2 key on the numeric keypad.
NumPad3 The 3 key on the numeric keypad.
NumPad4 The 4 key on the numeric keypad.
NumPad5 The 5 key on the numeric keypad.
NumPad6 The 6 key on the numeric keypad.
NumPad7 The 7 key on the numeric keypad.
NumPad8 The 8 key on the numeric keypad.
NumPad9 The 9 key on the numeric keypad.
O The O key.
OemClear The CLEAR key.
P The P key.
Pa1 The PA1 key.
PageDown The PAGE DOWN key.
PageUp The PAGE UP key.
Pause The PAUSE key.
Play The PLAY key.
Print The PRINT key.
PrintScreen The PRINT SCREEN key.
Prior The PAGE UP key.
ProcessKey The PROCESS KEY key.
Q The Q key.
R The R key.
RButton The right mouse button.
RControlKey The right CTRL key.
Return The RETURN key.
Right The RIGHT ARROW key.
RMenu The right ALT key.
RShiftKey The right SHIFT key.
RWin The right Windows logo key (Microsoft Natural Keyboard).
S The S key.
Scroll The SCROLL LOCK key.
Select The SELECT key.
Separator The Separator key.
Shift The SHIFT modifier key.
ShiftKey The SHIFT key.
Snapshot The PRINT SCREEN key.
Space The SPACEBAR key.
Subtract The Subtract key.
T The T key.
Tab The TAB key.
U The U key.
Up The UP ARROW key.
V The V key.
W The W key.
X The X key.
Y The Y key.
Z The Z key.
Zoom The ZOOM key.

Requirements

Namespace: System.WinForms

Assembly: System.WinForms.dll

See Also

System.WinForms Namespace