首页 > 代码库 > c# 键值对照表

c# 键值对照表

虚拟键值表
虚拟键十六进制值十进制值相应键盘或鼠标键
VK_LBUTTON11鼠标左键
VK_RBUTTON22鼠标右键
VK_CANCEL33Ctrl-Break
VK_MBUTTON44鼠标中键
VK_BACK88Backspace
VK_TAB99Tab
VK_CLEAR0C12Clear
VK_RETURN0D13Enter
VK_SHIFT1016Shift
VK_CONTROL1117Ctrl
VK_MENU1218Alt
VK_PAUSE1319Pause
VK_CAPITAL1420Caps Lock
VK_ESCAPE1B27Esc
VK_SPACE2032Space
VK_PRIOR2133Page Up
VK_NEXT2234Page Down
VK_END2335End
VK_HOME2436Home
VK_LEFT2537←键
VK_UP2638↑键
VK_RIGHT2739→键
VK_DOWN2840↓键
VK_SELECT2941Select
VK_PRINT2A42Print
VK_EXECUTE2B43Execute
VK_SNAPSHOT2C44Print Screen
VK_INSERT2D45Ins
VK_DELETE2E46Del
VK_HELP2F47Help
VK_030480
VK_131491
VK_232502
VK_333513
VK_434524
VK_535535
VK_636546
VK_737557
VK_838568
VK_939579
VK_A4165A
VK_B4266B
VK_C4367C
VK_D4468D
VK_E4569E
VK_F4670F
VK_G4771G
VK_H4872H
VK_I4973I
VK_J4A74J
VK_K4B75K
VK_L4C76L
VK_M4D77M
VK_N4E78N
VK_O4F79O
VK_P5080P
VK_Q5181Q
VK_R5282R
VK_S5383S
VK_T5484T
VK_U5585U
VK_V5686V
VK_W5787W
VK_X5888X
VK_Y5989Y
VK_Z5A90Z
VK_LWIN5B91Windows
VK_RWIN5C92Windows
VK_APPS5D93应用程序键
VK_SLEEP5F95休眠键
VK_NUMPAD06096小数字键盘0
VK_NUMPAD16197小数字键盘1
VK_NUMPAD26298小数字键盘2
VK_NUMPAD36399小数字键盘3
VK_NUMPAD464100小数字键盘4
VK_NUMPAD565101小数字键盘5
VK_NUMPAD666102小数字键盘6
VK_NUMPAD767103小数字键盘7
VK_NUMPAD868104小数字键盘8
VK_NUMPAD969105小数字键盘9
VK_MULTIPLY6A106乘号键
VK_ADD6B107加号键
VK_SEPARATOR6C108分割键
VK_SUBSTRACT6D109减号键
VK_DECIMAL6E110小数点键
VK_DIVIDE6F111除号键
VK_F17012F1
VK_F271113F2
VK_F372114F3
VK_F473115F4
VK_F574116F5
VK_F675117F6
VK_F776118F7
VK_F877119F8
VK_F978120F9
VK_F1079121F10
VK_F117A122F11
VK_F127B123F12
VK_F137C124F13
VK_F147D125F14
VK_F157E126F15
VK_F167F127F16
VK_F1780128F17
VK_F1881129F18
VK_F1982130F19
VK_F2083131F20
VK_F2184132F21
VK_F2285133F22
VK_F2386134F23
VK_F2487135F24
VK_NUMLOCK90144Num Lock
VK_SCROLL9145Scroll Lock
VK_LSHIFTA0160Shift
VK_RSHIFTA1161Shift
VK_LCONTROLA2162Ctrl
VK_RCONTROLA3163Ctrl
VK_LMENUA4164Alt
VK_RMENUA5165Alt

 

c# 键值对照表