WindowsKey Enum

Definition

Specifies key codes and modifiers.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[System.Flags]
public enum WindowsKey
Inheritance
WindowsKey
Attributes

Fields

A 65

The A key.

Add 107

The Add key.

Alt 262144

The ALT modifier key.

Apps 93

The Application key (Microsoft Natural Keyboard).

Attn 246

The ATTN key.

B 66

The B key.

Back 8

The BACKSPACE key.

BrowserBack 166

The Browser Back key.

BrowserFavorites 171

The Browser Favorites key.

BrowserForward 167

The Browser Forward key.

BrowserHome 172

The Browser Home key.

BrowserRefresh 168

The Browser Refresh key.

BrowserSearch 170

The Browser Search key.

BrowserStop 169

The Browser Stop key.

C 67

The C key.

Cancel 3

The CANCEL key.

Capital 20

The CAPS LOCK key.

CapsLock 20

The CAPS LOCK key.

Clear 12

The CLEAR key.

Control 131072

The CTRL modifier key.

ControlKey 17

The CTRL key.

Crsel 247

The CRSEL key.

D 68

The D key.

D0 48

The 0 key.

D1 49

The 1 key.

D2 50

The 2 key.

D3 51

The 3 key.

D4 52

The 4 key.

D5 53

The 5 key.

D6 54

The 6 key.

D7 55

The 7 key.

D8 56

The 8 key.

D9 57

The 9 key.

Decimal 110

The Decimal key.

Delete 46

The DEL key.

Divide 111

The Divide key.

Down 40

The DOWN ARROW key.

E 69

The E key.

End 35

The END key.

Enter 13

The ENTER key.

EraseEof 249

The ERASE EOF key.

Escape 27

The ESC key.

Execute 43

The EXECUTE key.

Exsel 248

The EXSEL key.

F 70

The F key.

F1 112

The F1 key.

F10 121

The F10 key.

F11 122

The F11 key.

F12 123

The F12 key.

F13 124

The F13 key.

F14 125

The F14 key.

F15 126

The F15 key.

F16 127

The F16 key.

F17 128

The F17 key.

F18 129

The F18 key.

F19 130

The F19 key.

F2 113

The F2 key.

F20 131

The F20 key.

F21 132

The F21 key.

F22 133

The F22 key.

F23 134

The F23 key.

F24 135

The F24 key.

F3 114

The F3 key.

F4 115

The F4 key.

F5 116

The F5 key.

F6 117

The F6 key.

F7 118

The F7 key.

F8 119

The F8 key.

F9 120

The F9 key.

FinalMode 24

The IME Final mode key.

G 71

The G key.

H 72

The H key.

HanguelMode 21

The IME Hanguel mode key.

HangulMode 21

The IME Hangul mode key.

HanjaMode 25

The IME Hanja mode key.

Help 47

The HELP key.

Home 36

The HOME key.

I 73

The I key.

IMEAccept 30

The IME Accept key.

IMEAceept 30

The IME Accept key.

IMEConvert 28

The IME Convert key.

IMEModeChange 31

The IME Mode change request.

IMENonconvert 29

The IME NonConvert key.

Insert 45

The INS key.

J 74

The J key.

JunjaMode 23

The IME Junja mode key.

K 75

The K key.

KanaMode 21

The IME Kana mode key.

KanjiMode 25

The IME Kanji mode key.

KeyCode 65535

The bit mask to extract a key code from a key value.

L 76

The L key.

LaunchApplication1 182

The Launch Application1 key.

LaunchApplication2 183

The Launch Application2 key.

LaunchMail 180

The Launch Mail key.

LButton 1

The left mouse button.

LControlKey 162

The left CTRL key.

Left 37

The LEFT ARROW key.

LineFeed 10

The CLEAR key.

LMenu 164

The left ALT key.

LShiftKey 160

The left SHIFT key.

LWin 91

The left Windows logo key (Microsoft Natural Keyboard).

M 77

The M key.

MButton 4

The middle mouse button (three-button mouse).

MediaNextTrack 176

The Media Next Track key.

MediaPlayPause 179

The Media Play Pause key.

MediaPreviousTrack 177

The Media Previous Track key.

MediaStop 178

The Media Stop key.

Menu 18

The ALT key.

Modifiers -65536

The bit mask to extract modifiers from a key value.

Multiply 106

The Multiply key.

N 78

The N key.

Next 34

The PAGE DOWN key.

NoName 252

A constant reserved for future use.

None 0

No key pressed.

NumLock 144

The NUM LOCK key.

NumPad0 96

The 0 key on the numeric keypad.

NumPad1 97

The 1 key on the numeric keypad.

NumPad2 98

The 2 key on the numeric keypad.

NumPad3 99

The 3 key on the numeric keypad.

NumPad4 100

The 4 key on the numeric keypad.

NumPad5 101

The 5 key on the numeric keypad.

NumPad6 102

The 6 key on the numeric keypad.

NumPad7 103

The 7 key on the numeric keypad.

NumPad8 104

The 8 key on the numeric keypad.

NumPad9 105

The 9 key on the numeric keypad.

O 79

The O key.

Oem1 186

The Oem 1 key.

Oem102 226

The Oem 102 key.

Oem2 191

The Oem 2 key.

Oem3 192

The Oem 3 key.

Oem4 219

The Oem 4 key.

Oem5 220

The Oem 5 key.

Oem6 221

The Oem 6 key.

Oem7 222

The Oem 7 key.

Oem8 223

The Oem8 key.

OemBackslash 226

The Oem Backslash key.

OemClear 254

The CLEAR key.

OemCloseBrackets 221

The Oem Close Brackets key.

Oemcomma 188

The Oem comma key.

OemMinus 189

The Oem Minus key.

OemOpenBrackets 219

The Oem Open Brackets key.

OemPeriod 190

The Oem Period key.

OemPipe 220

The Oem Pipe key.

Oemplus 187

The Oem plus key.

OemQuestion 191

The Oem Question key.

OemQuotes 222

The Oem Quotes key.

OemSemicolon 186

The Oem Semicolon key.

Oemtilde 192

The Oem tilde key.

P 80

The P key.

Pa1 253

The PA1 key.

Packet 231

The Packet KEY key.

PageDown 34

The PAGE DOWN key.

PageUp 33

The PAGE UP key.

Pause 19

The PAUSE key.

Play 250

The PLAY key.

Print 42

The PRINT key.

PrintScreen 44

The PRINT SCREEN key.

Prior 33

The PAGE UP key.

ProcessKey 229

The PROCESS KEY key.

Q 81

The Q key.

R 82

The R key.

RButton 2

The right mouse button.

RControlKey 163

The right CTRL key.

Return 13

The RETURN key.

Right 39

The RIGHT ARROW key.

RMenu 165

The right ALT key.

RShiftKey 161

The right SHIFT key.

RWin 92

The right Windows logo key (Microsoft Natural Keyboard).

S 83

The S key.

Scroll 145

The SCROLL LOCK key.

Select 41

The SELECT key.

SelectMedia 181

The Select Media key.

Separator 108

The Separator key.

Shift 65536

The SHIFT modifier key.

ShiftKey 16

The SHIFT key.

Sleep 95

The Computer Sleep key.

Snapshot 44

The PRINT SCREEN key.

Space 32

The SPACEBAR key.

Subtract 109

The Subtract key.

T 84

The T key.

Tab 9

The TAB key.

U 85

The U key.

Up 38

The UP ARROW key.

V 86

The V key.

VolumeDown 174

The Volume Down key.

VolumeMute 173

The Volume Mute key.

VolumeUp 175

The Volume Up key.

W 87

The W key.

X 88

The X key.

XButton1 5

The first x mouse button (five-button mouse).

XButton2 6

The second x mouse button (five-button mouse).

Y 89

The Y key.

Z 90

The Z key.

Zoom 251

The ZOOM key.

Applies to