首页 > 学院 > 开发设计 > 正文

KeyCode常数用法

2019-11-18 17:44:18
字体:
来源:转载
供稿:网友
可在代码中的任何地方用下列常数代替实际值:

常数值描述

vbKeyLButton0x1鼠标左键
vbKeyRButton0x2鼠标右键
vbKeyCancel0x3CANCEL键
vbKeyMButton0x4鼠标中键
vbKeyBack0x8BACKSPACE键
vbKeyTab0x9TAB键
vbKeyClear0xCCLEAR键
vbKeyReturn0xDENTER键
vbKeyShift0x10SHIFT键
vbKeyControl0x11CTRL键
vbKeyMenu0x12MENU键
vbKeyPause0x13PAUSE键
vbKeyCapital0x14CAPSLOCK键
vbKeyEscape0x1BESC键
vbKeySpace0x20SPACEBAR键
vbKeyPageUp0x21PAGEUP键
vbKeyPageDown0x22PAGEDOWN键
vbKeyEnd0x23END键
vbKeyHome0x24HOME键
vbKeyLeft0x25LEFTARROW键
vbKeyUp0x26UPARROW键
vbKeyRight0x27RIGHTARROW键
vbKeyDown0x28DOWNARROW键
vbKeySelect0x29SELECT键
vbKeyPRint0x2APRINTSCREEN键
vbKeyExecute0x2BEXECUTE键
vbKeySnapshot0x2CSNAPSHOT键
vbKeyInsert0x2DINSERT键
vbKeyDelete0x2EDELETE键
vbKeyHelp0x2FHELP键
vbKeyNumlock0x90NUMLOCK键
A至Z键与A杴Z字母的ASCII码相同:

常数值描述
vbKeyA65A键
vbKeyB66B键
vbKeyC67C键
vbKeyD68D键
vbKeyE69E键
vbKeyF70F键
vbKeyG71G键
vbKeyH72H键
vbKeyI73I键
vbKeyJ74J键
vbKeyK75K键
vbKeyL76L键
vbKeyM77M键
vbKeyN78N键
vbKeyO79O键
vbKeyP80P键
vbKeyQ81Q键
vbKeyR82R键
vbKeyS83S键
vbKeyT84T键
vbKeyU85U键
vbKeyV86V键
vbKeyW87W键
vbKeyX88X键
vbKeyY89Y键
vbKeyZ90Z键
0至9键与数字0杴9的ASCII码相同:

常数值描述

vbKey0480键
vbKey1491键
vbKey2502键
vbKey3513键
vbKey4524键
vbKey5535键
vbKey6546键
vbKey7557键
vbKey8568键
vbKey9579键
下列常数代表数字键盘上的键:

常数值描述
vbKeyNumpad00x600键
vbKeyNumpad10x611键
vbKeyNumpad20x622键
vbKeyNumpad30x633键
vbKeyNumpad40x644键
vbKeyNumpad50x655键
vbKeyNumpad60x666键
vbKeyNumpad70x677键
vbKeyNumpad80x688键
vbKeyNumpad90x699键
vbKeyMultiply0x6AMULTIPLICATIONSIGN(*)键
vbKeyAdd0x6BPLUSSIGN( )键
vbKeySeparator0x6CENTER键
vbKeySubtract0x6DMINUSSIGN(杴)键
vbKeyDecimal0x6EDECIMALPOINT(.)键
vbKeyDivide0x6FDIVISIONSIGN(/)键
下列常数代表功能键:

常数值描述

vbKeyF10x70F1键
vbKeyF20x71F2键
vbKeyF30x72F3键
vbKeyF40x73F4键
vbKeyF50x74F5键
vbKeyF60x75F6键
vbKeyF70x76F7键
vbKeyF80x77F8键
vbKeyF90x78F9键
vbKeyF100x79F10键
vbKeyF110x7AF11键
vbKeyF120x7BF12键
vbKeyF130x7CF13键
vbKeyF140x7DF14键
vbKeyF150x7EF15键
vbKeyF160x7FF16键->


上一篇:设置计算机名称

下一篇:让窗体居中

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表