VB_键值表_大全
VBchr()码值对应列表大全
VBchr()码值对应列表大全Chr("0") 为0的字符Chr("1")Chr("2")Chr("3")Chr("4")Chr("5")Chr("6")Chr("7") 响铃Chr("8") 回格Chr("9") tab(水平制表符)Chr("10") 换行Chr("11") tab(垂直制表符)Chr("12") 换页Chr("13") 回车 chr(13)&chr(10) 回车和换行的组合Chr("14")Chr("15")Chr("16")Chr("17")Chr("18")Chr("19")Chr("20")Chr("21")Chr("22")Chr("23")Chr("24")Chr("25")Chr("26") 结束 EndChr("27") 脱离 Pause breakChr("29")Chr("30")Chr("31")Chr("32") 空格 SPACE Chr("33") !Chr("34") "Chr("35") #Chr("36") $Chr("37") %Chr("38") &Chr("39") ’Chr("40") (Chr("41") )Chr("42") *Chr("43") +Chr("44") ,Chr("45") -Chr("46") .Chr("47") /Chr("48") 0Chr("49") 1Chr("50") 2Chr("51") 3Chr("52") 4Chr("53") 5Chr("54") 6Chr("55") 7Chr("56") 8Chr("57") 9Chr("59") ; Chr("60") < Chr("61") = Chr("62") > Chr("63") ? Chr("64") @ Chr("65") A Chr("66") B Chr("67") C Chr("68") D Chr("69") E Chr("70") F Chr("71") G Chr("72") H Chr("73") I Chr("74") J Chr("75") K Chr("76") L Chr("77") M Chr("78") N Chr("79") O Chr("80") P Chr("81") Q Chr("82") R Chr("83") S Chr("84") T Chr("85") U Chr("86") V Chr("87") WChr("89") Y Chr("90") Z Chr("91") [ Chr("92") \ Chr("92") \ Chr("93") ] Chr("94") ^ Chr("95") _ Chr("96") ` Chr("97") a Chr("98") b Chr("99") c Chr("100") d Chr("101") e Chr("102") f Chr("103") g Chr("104") h Chr("105") i Chr("106") j Chr("107") k Chr("108") l Chr("109") m Chr("110") n Chr("111") o Chr("112") p Chr("113") q Chr("114") r Chr("115") s Chr("116") tChr("117") uChr("118") vChr("119") wChr("120") xChr("121") yChr("122") zChr("123") {Chr("124") |Chr("125") }Chr("126") ~Chr("127")Chr("128")Chr("129")Chr("130")Chr("131")Chr("132")有个简单的查看方法,打开记事本,如要查看“Chr("119") w”,可以按下Alt+119(先按住Alt不放,然后输入数字,输完后在放开)。
VB编程常用的注册表键值
VB编程常用的注册表键值1.HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\DisableCMD功能:禁用或启用命令提示符(CMD)设置:0:启用CMD1:禁用CMD数据类型:REG_DWORD2.HKEY_CURRENT_USER\ Software \Microsoft\ Windows \CurrentV ersion \Policies \System\DisableRegistryTools功能:禁用或启用注册表编辑器(Regedit)设置:0:启用注册表编辑器1:禁用注册表编辑器数据类型:REG_DWORD友情提示:在试这个之前,最好先新建一个VB工程,然后将以下代码粘贴到Form_Load()事件下,然后再试禁用注册表,如果发现运行注册表编辑器时显示注册表编辑器被禁用,就运行这个工程,当窗体出来时就可以解禁注册表管理器:Set WSHShell = CreateObject("WScript.Shell")WSHShell.regwrite " HKEY_CURRENT_USER\ Software \Microsoft\ Windows \ CurrentV ersion \ Policies \System\ DisableRegistryTools", 0, "REG_DWORD"3.HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentV ersion\Policies\System\ DisableTaskMgr功能:禁用或启用任务管理器(TaskMgr)设置:0:启用任务管理器1:禁用任务管理器数据类型:REG_DWORD4.HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentV ersion\Run功能:Windows开机自启动路径设置:将程序的路径加入到此路径下,保存为REG_SZ类型,就可以开机自启动数据类型:REG_SZ5.HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentV ersion\Explorer\Advanced\Hidden功能:是否将属性为隐藏的文件真的隐藏设置:0:不真的隐藏(半透明显示)1:真的隐藏数据类型:REG_DWORD6.HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentV ersion\Explorer\Advanced\HideFileExt功能:是否隐藏文件的拓展名设置:0:不隐藏1:隐藏数据类型:REG_DWORD7.HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentV ersion\Explorer\User Shell Folders\Desktop功能:获得桌面的路径数据类型:REG_EXPAND_SZ8.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall功能:储存控制面板中的添加或删除页面的数据数据类型:项9.①HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentV ersion\Uninstall\~\DisplayIcon功能:控制面板中的添加或删除页面的程序图标,设定后将可以在添加或删除页面看到这个图标,作为程序的图标设置:设置为图标所在的路径数据类型:REG_SZ②HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentV ersion\Uninstall\~\DisplayName功能:控制面板中的添加或删除页面的程序名称设置:自定义的程序名称数据类型:REG_SZ③HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentV ersion\Uninstall\~\DisplayVersion功能:控制面板中的添加或删除页面的程序版本设置:自定义的程序版本数据类型:REG_SZ④HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentV ersion\Uninstall\~\Publisher功能:控制面板中的添加或删除页面的程序的技术支持,软件发行者栏设置:自定义的软件发行者名称,如:×××公司数据类型:REG_SZ⑤HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentV ersion\Uninstall\~\UninstallString功能:控制面板中的添加或删除页面的程序的卸载程序设置:指向这个程序的卸载程序的路径,可以在当中添加参数,如将值设定为:F:\abc.exe /s这样当通过控制面板的添加/删除启动卸载程序时,程序就会获得值为S的参数,在程序中可以用Command()函数获得程序的启动参数。
VB键盘字符代码
第0~32号及第127号(共34个)是控制字符或通讯专用字符,如控制符:LF(换行)、CR(回车)、FF(换页)、DEL(删除)、BEL(振铃)等;通讯专用字符:SOH(文头)、EOT(文尾)、ACK(确认)等;第33~126号(共94个)是字符,其中第48~57号为0~9十个阿拉伯数字;65~90号为26个大写英文字母,97~122号为26个小写英文字母,其余为一些标点符号、运算符号等。
注意:在计算机的存储单元中,一个ASCII码值占一个字节(8个二进制位),其最高位(b7)用作奇偶校验位。
所谓奇偶校验,是指在代码传送过程中用来检验是否出现错误的一种方法,一般分奇校验和偶校验两种。
奇校验规定:正确的代码一个字节中1的个数必须是奇数,若非奇数,则在最高位b7添1;偶校验规定:正确的代码一个字节中1的个数必须是偶数,若非偶数,则在最高位b7添1。
为了便于查询,以下列出ASCII码表:常用ASCII 码对照表第128~255号为扩展字符(不常用),如需要请下载:完整的8位ASCII 字符表keycode 是键盘上每一个按键对应的码keycode如下:keycode 0 =keycode 1 =keycode 2 =keycode 3 =keycode 4 =keycode 5 =keycode 6 =keycode 7 =keycode 8 = BackSpace BackSpace keycode 9 = Tab Tabkeycode 10 =keycode 11 =keycode 12 = Clearkeycode 13 = Enterkeycode 14 =keycode 15 =keycode 16 = Shift_Lkeycode 17 = Control_Lkeycode 18 = Alt_Lkeycode 19 = Pausekeycode 20 = Caps_Lockkeycode 21 =keycode 22 =keycode 23 =keycode 24 =keycode 25 =keycode 26 =keycode 27 = Escape Escapekeycode 28 =keycode 29 =keycode 30 =keycode 31 =keycode 32 = space spacekeycode 33 = Priorkeycode 34 = Nextkeycode 35 = Endkeycode 36 = Homekeycode 37 = Leftkeycode 38 = Upkeycode 39 = Rightkeycode 40 = Downkeycode 41 = Selectkeycode 43 = Executekeycode 44 =keycode 45 = Insertkeycode 46 = Deletekeycode 47 = Helpkeycode 48 = 0 equal braceright keycode 49 = 1 exclam onesuperior keycode 50 = 2 quotedbl twosuperior keycode 51 = 3 section threesuperior keycode 52 = 4 dollarkeycode 53 = 5 percentkeycode 54 = 6 ampersandkeycode 55 = 7 slash braceleft keycode 56 = 8 parenleft bracketleft keycode 57 = 9 parenright bracketright keycode 58 =keycode 59 =keycode 60 =keycode 61 =keycode 62 =keycode 63 =keycode 64 =keycode 65 = a Akeycode 66 = b Bkeycode 67 = c Ckeycode 68 = d Dkeycode 69 = e E EuroSignkeycode 70 = f Fkeycode 71 = g Gkeycode 72 = h Hkeycode 73 = i Ikeycode 74 = j Jkeycode 75 = k Kkeycode 76 = l Lkeycode 77 = m M mukeycode 78 = n Nkeycode 79 = o Okeycode 80 = p Pkeycode 81 = q Q atkeycode 82 = r Rkeycode 83 = s Skeycode 84 = t Tkeycode 85 = u Ukeycode 87 = w Wkeycode 88 = x Xkeycode 89 = y Ykeycode 90 = z Zkeycode 91 =keycode 92 =keycode 93 =keycode 94 =keycode 95 =keycode 96 = KP_0 KP_0keycode 97 = KP_1 KP_1keycode 98 = KP_2 KP_2keycode 99 = KP_3 KP_3keycode 100 = KP_4 KP_4keycode 101 = KP_5 KP_5keycode 102 = KP_6 KP_6keycode 103 = KP_7 KP_7keycode 104 = KP_8 KP_8keycode 105 = KP_9 KP_9keycode 106 = KP_Multiply KP_Multiply keycode 107 = KP_Add KP_Add keycode 108 = KP_Separator KP_Separator keycode 109 = KP_Subtract KP_Subtract keycode 110 = KP_Decimal KP_Decimal keycode 111 = KP_Divide KP_Divide keycode 112 = F1keycode 113 = F2keycode 114 = F3keycode 115 = F4keycode 116 = F5keycode 117 = F6keycode 118 = F7keycode 119 = F8keycode 120 = F9keycode 121 = F10keycode 122 = F11keycode 123 = F12keycode 124 = F13keycode 125 = F14keycode 126 = F15keycode 127 = F16keycode 128 = F17keycode 129 = F18keycode 131 = F20 keycode 132 = F21 keycode 133 = F22 keycode 134 = F23 keycode 135 = F24 keycode 136 = Num_Lock keycode 137 = Scroll_Lock keycode 138 =keycode 139 =keycode 140 =keycode 141 =keycode 142 =keycode 143 =keycode 144 =keycode 145 =keycode 146 =keycode 147 =keycode 148 =keycode 149 =keycode 150 =keycode 151 =keycode 152 =keycode 153 =keycode 154 =keycode 155 =keycode 156 =keycode 157 =keycode 158 =keycode 159 =keycode 160 =keycode 161 =keycode 162 =keycode 163 =keycode 164 =keycode 165 =keycode 166 =keycode 167 =keycode 168 =keycode 169 =keycode 170 =keycode 171 =keycode 172 =keycode 173 =keycode 174 =keycode 175 =keycode 176 =keycode 177 =keycode 178 =keycode 179 =keycode 180 =keycode 181 =keycode 182 =keycode 183 =keycode 184 =keycode 185 =keycode 186 =keycode 187 = acute gravekeycode 188 = comma semicolon keycode 189 = minus underscore keycode 190 = period colonkeycode 191 =keycode 192 = numbersign apostrophe keycode 193 =keycode 194 =keycode 195 =keycode 196 =keycode 197 =keycode 198 =keycode 199 =keycode 200 =keycode 201 =keycode 202 =keycode 203 =keycode 204 =keycode 205 =keycode 206 =keycode 207 =keycode 208 =keycode 209 =keycode 210 = plusminus hyphen macron keycode 211 =keycode 212 = copyright registered keycode 213 = guillemotleft guillemotright keycode 214 = masculine ordfeminine keycode 215 = ae AEkeycode 216 = cent yenkeycode 217 = questiondown exclamdownkeycode 218 = onequarter onehalf threequarters keycode 219 =keycode 220 = less greater barkeycode 221 = plus asterisk asciitildekeycode 222 =keycode 223 =keycode 224 =keycode 225 =keycode 226 =keycode 227 = multiply divisionkeycode 228 = acircumflex Acircumflex keycode 229 = ecircumflex Ecircumflex keycode 230 = icircumflex Icircumflex keycode 231 = ocircumflex Ocircumflex keycode 232 = ucircumflex Ucircumflex keycode 233 = ntilde Ntildekeycode 234 = yacute Yacutekeycode 235 = oslash Oobliquekeycode 236 = aring Aringkeycode 237 = ccedilla Ccedillakeycode 238 = thorn THORNkeycode 239 = eth ETHkeycode 240 = diaeresis cedilla currency keycode 241 = agrave Agrave atilde Atilde keycode 242 = egrave Egravekeycode 243 = igrave Igravekeycode 244 = ograve Ograve otilde Otilde keycode 245 = ugrave Ugravekeycode 246 = adiaeresis Adiaeresiskeycode 247 = ediaeresis Ediaeresiskeycode 248 = idiaeresis Idiaeresiskeycode 249 = odiaeresis Odiaeresiskeycode 250 = udiaeresis Udiaeresiskeycode 251 = ssharp question backslash keycode 252 = asciicircum degreekeycode 253 = 3 sterlingkeycode 254 = Mode_switch。
VB 中所有键盘上的键值代码
vbKeyF5 116 F5 键
vbKeyF6 117 F6 键
vbKeyF7 118 F7 键
vbKeyF8 119 F8 键
vbKeyF9 120 F9 键
vbKeyF111 键
vbKeyF12 123 F12 键
vbKeyInser 45 INS 键
vbKeyDelete 46 DEL 键
vbKeyHelp 47 HELP 键
vbKeyNumlock 144 NUM LOCK 键
================================
A 键到 Z 键与其 ASCII 码的相应值'A' 到 'Z' 是一致的
vbKeyReturn 13 ENTER 键
vbKeyShift 16 SHIFT 键
vbKeyControl 17 CTRL 键
vbKeyMenu 18 菜单键
vbKeyPause 19 PAUSE 键
vbKeyCapital 20 CAPS LOCK 键
vbKeyEscape 27 ESC 键
vbKeyDecimal 110 小数点 (.) 键
vbKeyDivide 111 除号 (/) 键
==================================================
功能键
常数 值 描述
vbKeyF1 112 F1 键
vbKeyF2 113 F2 键
vbKeyF3 114 F3 键
vbKey1 49 1 键
vbKey2 50 2 键
vbKey3 51 3 键
VB中常用函数及有用的KeyAscii键码.doc
00:00:00 ~ 23:59:59用#括起来放置 U 期和时间,允许用各种表示 U 期和时间的格式。 FI 期可以用 7〃、“,〃、化〃分隔开,可以是年、月、口,也可以是月、日、年的 顺序。 时间必须用“:〃分隔,顺序是:时、分、秒。
例: #09/10/2000# 或 #2000-09-12# #0&30:00 AM# #09/10/2000 08:30:00 AM#
例: Dim mylab As Date mylab = #9/3/2001 11:35:00 AM# Time = mylab
注意:数 12 和数 12.0 对计算机来说是不同的, 前者是整数(占 2 个字节),后者是浮点数 (占 4 个字节) 实数型数据分为浮点数和定点数。 浮点数山三部分组成:符号,指数和尾数。 在 VB 中浮点数分为两种: 单精度浮点数( Single) 双精度浮点数( Double )
(1)单精度数⑸ ngle,类型符! ) 在内存中占 4 个字节 ( 32 位),,有效数字: 7 位十进制 数
vb 里面可以这样表示: 8.96E-5 例: 21e5 (正号省略)表示: 21 乘以 10 的 5 次方的一个单精度数
(2)双精度数 (Double,类型符 # ) Double 类型数据在内存中占用 8 个字节 ( 64 位) Double 型可以精确到 15 或 16 位十进制数 , 即 15 或 16 e,无类型符)
一般用于存储二进制数。
字节型数据在内存中占 1 个字节 (8 位)。
字节型数据的取值范围: 0-255
四、 日期型 (Date) 在内存屮占用 8 个字节,以浮点数形式存储。 H 期型数据的 H 期表示范围为:
100 年 1 月 1 日~9999 年 12 月 31 日 LI 期型数据的时间表示范围为:
VB中KeyCode常数用法
VB中KeyCode常数⽤法可在代码中的任何地⽅⽤下列常数代替实际值:常数值描述vbKeyLButton 0x1 ⿏标左键vbKeyRButton 0x2 ⿏标右键vbKeyCancel 0x3 CANCEL 键vbKeyMButton 0x4 ⿏标中键vbKeyBack 0x8 BACKSPACE 键vbKeyTab 0x9 TAB 键vbKeyClear 0xC CLEAR 键vbKeyReturn 0xD ENTER 键vbKeyShift 0x10 SHIFT 键vbKeyControl 0x11 CTRL 键vbKeyMenu 0x12 MENU 键vbKeyPause 0x13 PAUSE 键vbKeyCapital 0x14 CAPS LOCK 键vbKeyEscape 0x1B ESC 键vbKeySpace 0x20 SPACEBAR 键vbKeyPageUp 0x21 PAGE UP 键vbKeyPageDown 0x22 PAGE DOWN 键vbKeyEnd 0x23 END 键vbKeyHome 0x24 HOME 键vbKeyLeft 0x25 LEFT ARROW 键vbKeyUp 0x26 UP ARROW 键vbKeyRight 0x27 RIGHT ARROW 键vbKeyDown 0x28 DOWN ARROW 键vbKeySelect 0x29 SELECT 键vbKeyPrint 0x2A PRINT SCREEN 键vbKeyExecute 0x2B EXECUTE 键vbKeySnapshot 0x2C SNAPSHOT 键vbKeyInsert 0x2D INSERT 键vbKeyDelete 0x2E DELETE 键vbKeyHelp 0x2F HELP 键vbKeyNumlock 0x90 NUM LOCK 键A ⾄ Z 键与 A 杴 Z 字母的 ASCII 码相同:常数值描述vbKeyA 65 A 键vbKeyB 66 B 键vbKeyC 67 C 键vbKeyD 68 D 键vbKeyE 69 E 键vbKeyF 70 F 键vbKeyG 71 G 键vbKeyH 72 H 键vbKeyI 73 I 键vbKeyJ 74 J 键vbKeyK 75 K 键vbKeyL 76 L 键vbKeyM 77 M 键vbKeyN 78 N 键vbKeyO 79 O 键vbKeyP 80 P 键vbKeyQ 81 Q 键vbKeyR 82 R 键vbKeyS 83 S 键vbKeyT 84 T 键vbKeyU 85 U 键vbKeyV 86 V 键vbKeyW 87 W 键vbKeyX 88 X 键vbKeyY 89 Y 键vbKeyZ 90 Z 键0 ⾄ 9 键与数字 0 杴 9 的 ASCII 码相同:常数值描述vbKey0 48 0 键vbKey1 49 1 键vbKey2 50 2 键vbKey3 51 3 键vbKey4 52 4 键vbKey5 53 5 键vbKey6 54 6 键vbKey7 55 7 键vbKey8 56 8 键vbKey9 57 9 键下列常数代表数字键盘上的键:常数值描述vbKeyNumpad0 0x60 0 键vbKeyNumpad1 0x61 1 键vbKeyNumpad2 0x62 2 键vbKeyNumpad3 0x63 3 键vbKeyNumpad4 0x64 4 键vbKeyNumpad5 0x65 5 键vbKeyNumpad6 0x66 6 键vbKeyNumpad7 0x67 7 键vbKeyNumpad8 0x68 8 键vbKeyNumpad9 0x69 9 键vbKeyMultiply 0x6A MULTIPLICATION SIGN (*) 键 vbKeyAdd 0x6B PLUS SIGN (+) 键vbKeySeparator 0x6C ENTER 键vbKeySubtract 0x6D MINUS SIGN (杴) 键vbKeyDecimal 0x6E DECIMAL POINT (.) 键vbKeyDivide 0x6F DIVISION SIGN (/) 键下列常数代表功能键:常数值描述vbKeyF1 0x70 F1 键vbKeyF2 0x71 F2 键vbKeyF3 0x72 F3 键vbKeyF4 0x73 F4 键vbKeyF5 0x74 F5 键vbKeyF6 0x75 F6 键vbKeyF7 0x76 F7 键vbKeyF8 0x77 F8 键vbKeyF9 0x78 F9 键vbKeyF10 0x79 F10 键vbKeyF11 0x7A F11 键 vbKeyF12 0x7B F12 键 vbKeyF13 0x7C F13 键 vbKeyF14 0x7D F14 键 vbKeyF15 0x7E F15 键 vbKeyF16 0x7F F16 键。
vb6实用快捷键大全
18、Alt+R:打开运行菜单
19、Alt+U:打开查询菜单
20、Alt+Q:退出
21、Alt+V:打开视图菜单
22、Alt+W:打开窗口菜单
23、Alt+→:根据输入的字符检索出可以使用的关键字
24、Tab:让选中的代码,集休缩进
25、Shift+F2:查看当前光标所在的变量或函数、子过程的定义。这一快捷键很方便,比如程序中有一个 call PubFunction ,你只要将鼠标在PubFunction 任意一处点中,然后按Shift+F2就可以直接转到函数的声明处。
55、Ctrl+T:显示部件窗口。菜单位置是工程----部件
56、Ctrl+W:编辑监视
57、Ctrl+X:剪切
58、Ctrl+Z:撤消上一步操作。
Ctrl+W 编辑监视窗口
Ctrl+n n Enter 偶经常要另开一个程序先做试验,你们可能很少用吧?呵呵
以上几个,是我使用中最多的。当然。其它的我也有使用。如:Ctrl+J(所选控件置前),Ctrl+J(所选控件置底),F7,Shift+F4还有那些Windows通用的那些快捷键:Ctrl+C,Ctrl+V ,哈哈,这二个快捷键,偶好像使用次数。也可以在所有使用快捷中前几名呢!哈哈!
39、Ctrl+F8:运行到光标处
40、Ctrl+F9:运行下一条语句
41、Ctrl+G:查看立即窗体。比如程序中有Debug.print 语句,你可以在立即窗口中查看到相应的显示。另 外在开发过程中在立即窗体中还可以查询变量的情况,方法是输入 ?变量名 之后回车
键盘键值表
下列常数代表功能键: vbKeyF1 vbKeyF2 vbKeyF3 vbKeyF4 vbKeyF5 vbKeyF6 vbKeyF7 vbKeyF8 vbKeyF9 vbKeyF10 vbKeyF11 vbKeyF12 vbKeyF13 vbKeyF14 vbKeyF15 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7A 0x7B 0x7C 0x7D 0x7E F1 键 F2 键 F3 键 F4 键 F5 键 F6 键 F7 键 F8 键 F9 键 F10 键 F11 键 F12 键 F13 键 F14 键 F15 键
vbKeyF16
0x7F
F16 键
0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6A 0x6B 0x6C 0x6D 0x6E 0x6F
2键 3键 4键 5键 6键 7键 8键 9键 MULTIPLICATION SIGN (*) 键 PLUS SIGN (+) 键 ENTER 键 MINUS SIGN (–) 键 DECIMAL POINT (.) 键 DIVISION SIGN (/) 键
0 至 9 键与数字 0 – 9 的 ASCII 码相同: vbKeyNumpad0 vbKeyNumpad1 0x60 0x61 0键 1键
vbKeyNumpad2 vbKeyNumpad3 vbKeyNumpad4 vbKeyNumpad5 vbKeyNumpad6 vbKeyNumpad7 vbKeyNumpad8 vbKeyNumpad9 vbKeyMultiply vbKeyAdd vbKeySeparator vbKeySubtract vbKeyDecimal vbKeyDivide
VB键盘常量大全256个虚拟键码
Public Const VK_LBUTTON = &H1 Public Const VK_RBUTTON = &H2 Public Const VK_CANCEL = &H3 Public Const VK_MBUTTON = &H4 Public Const VK_BACK = &H8 Public Const VK_TAB = &H9 Public Const VK_CLEAR = &HC Public Const VK_RETURN = &HD Public Const VK_SHIFT = &H10 Public Const VK_CONTROL = &H11 Public ConstVK_MENU = &H12 Public ConstVK_PAUSE = &H13 Public ConstVK_CAPITAL = &H14 Public ConstVK_ESCAPE = &H1B Public ConstVK_SPACE = &H20 Public ConstVK_PRIOR = &H21 Public ConstVK_NEXT = &H22 Public Const VK_END = &H23 Public Const VK_HOME = &H24 Public Const VK_LEFT = &H25 Public Const VK_UP = &H26 Public ConstVK_RIGHT = &H27 Public ConstVK_DOWN = &H28 Public ConstVK_Select = &H29 Public ConstVK_PRINT = &H2A Public ConstVK_EXECUTE = &H2B Public ConstVK_SNAPSHOT = &H2C Public ConstVK_Insert = &H2D Public ConstVK_Delete = &H2E Public ConstVK_HELP = &H2F Public Const VK_0 = &H30 Public Const VK_1 = &H31 Public Const VK_2 = &H32 Public Const VK_3 = &H33 Public Const VK_4 = &H34 Public Const VK_5 = &H35 Public Const VK_6 = &H36 Public Const VK_7 = &H37 Public Const VK_8 = &H38 Public Const VK_9 = &H39 Public Const VK_A = &H41 Public Const VK_B = &H42 Public Const VK_C = &H43Public Const VK_D = &H44Public Const VK_E = &H45 Public Const VK_F = &H46 Public Const VK_G = &H47 Public Const VK_H = &H48 Public Const VK_I = &H49 Public Const VK_J = &H4A Public Const VK_K= &H4B Public Const VK_L = &H4C Public Const VK_M = &H4D Public Const VK_N = &H4E Public Const VK_O = &H4F Public Const VK_P = &H50 Public Const VK_Q = &H51 Public Const VK_R = &H52 Public Const VK_S = &H53 Public Const VK_T = &H54 Public Const VK_U = &H55 Public Const VK_V = &H56 Public Const VK_W = &H57 Public Const VK_X = &H58 Public Const VK_Y = &H59 Public Const VK_Z = &H5A Public Const VK_STARTKEY = &H5B Public Const VK_CONTEXTKEY = &H5D Public Const VK_NUMPAD0 = &H60 Public Const VK_NUMPAD1 = &H61 Public Const VK_NUMPAD2 = &H62 Public Const VK_NUMPAD3 = &H63 Public Const VK_NUMPAD4 = &H64 Public Const VK_NUMPAD5 = &H65 Public Const VK_NUMPAD6 = &H66 Public Const VK_NUMPAD7 = &H67 Public Const VK_NUMPAD8 = &H68 Public Const VK_NUMPAD9 = &H69 Public Const VK_MULTIPLY = &H6A Public Const VK_ADD = &H6BPublic Const VK_SEPARATOR = &H6C Public Const VK_SUBTRACT = &H6D Public Const VK_DECIMAL = &H6E Public Const VK_DIVIDE = &H6F Public Const VK_F1 = &H70 Public Const VK_F2 = &H71 Public ConstVK_F3 = &H72Public Const VK_F4 = &H73Public Const VK_F5 = &H74 Public Const VK_F6 = &H75 Public Const VK_F7 = &H76 Public Const VK_F8 = &H77 Public Const VK_F9 = &H78 Public Const VK_F10 = &H79 Public Const VK_F11 = &H7A Public Const VK_F12 = &H7B Public Const VK_F13 = &H7C Public Const VK_F14 = &H7D Public Const VK_F15 = &H7E Public Const VK_F16 = &H7F Public Const VK_F17 = &H80 Public Const VK_F18 = &H81 Public Const VK_F19 = &H82 Public Const VK_F20 = &H83 Public Const VK_F21 = &H84 Public Const VK_F22 = &H85 Public Const VK_F23 = &H86 Public Const VK_F24 = &H87 Public Const VK_NUMLOCK = &H90 Public Const VK_OEM_SCROLL = &H91 Public Const VK_OEM_1 = &HBAPublic Const VK_OEM_PLUS = &HBB Public Const VK_OEM_COMMA = &HBC Public Const VK_OEM_MINUS = &HBD Public Const VK_OEM_PERIOD = &HBE Public Const VK_OEM_2 = &HBF Public Const VK_OEM_3 = &HC0 Public Const VK_OEM_4 = &HDB Public Const VK_OEM_5 = &HDC Public Const VK_OEM_6 = &HDD Public Const VK_OEM_7 = &HDE Public Const VK_OEM_8 = &HDF Public Const VK_ICO_F17 = &HE0 Public Const VK_ICO_F18 = &HE1 Public Const VK_OEM102 = &HE2 Public Const VK_ICO_HELP = &HE3 Public Const VK_ICO_00 = &HE4 Public Const VK_ICO_CLEAR = &HE6 Public Const VK_OEM_RESET = &HE9 Public Const VK_OEM_JUMP = &HEA Public Const VK_OEM_PA1 = &HEB Public Const VK_OEM_PA2 = &HECPublic Const VK_OEM_PA3 = &HED Public Const VK_OEM_WSCTRL = &HEE Public ConstVK_OEM_CUSEL = &HEFPublic Const VK_OEM_A TTN = &HF0Public Const VK_OEM_FINNISH = &HF1Public Const VK_OEM_COPY = &HF2Public Const VK_OEM_AUTO = &HF3Public Const VK_OEM_ENLW = &HF4Public Const VK_OEM_BACKTAB = &HF5Public Const VK_ATTN = &HF6Public Const VK_CRSEL = &HF7Public Const VK_EXSEL = &HF8Public Const VK_EREOF = &HF9Public Const VK_PLAY = &HFAPublic Const VK_ZOOM = &HFBPublic Const VK_NONAME = &HFCPublic Const VK_PA1 = &HFDPublic Const VK_OEM_CLEAR = &HFE虚拟键码虚拟键码保存在WM_KEYDOWN 、WM_KEYUP 、WM_SYSKEYDOWN 和WM_SYSKEYUP 讯息的wParam 参数中。
ASCII键码VB中的键码常数
ASCII键码VB中的键码常数ASCII键码VB中的键码常数键码值描述-------------------------------------------------------------------vbKeyLButton 1 鼠标左键-------------------------------------------------------------------vbKeyRButton 2 鼠标右键-------------------------------------------------------------------vbKeyCancel 3 CANCEL 键-------------------------------------------------------------------vbKeyMButton 4 鼠标中键-------------------------------------------------------------------vbKeyBack 8 Backspace 键-------------------------------------------------------------------vbKeyTab 9 TAB 键-------------------------------------------------------------------vbKeyClear 12 CLEAR 键-------------------------------------------------------------------vbKeyReturn 13 Enter 键-------------------------------------------------------------------vbKeyShift 16 Shift 键-------------------------------------------------------------------vbKeyConterol 17 Ctrl 键-------------------------------------------------------------------vbKeyMenu 18 菜单键-------------------------------------------------------------------vbKeyPause 19 PAUSE 键-------------------------------------------------------------------vbKeyCapital 20 CAPS LOCK 键-------------------------------------------------------------------vbKeyEscape 27 ESC 键-------------------------------------------------------------------vbKeySpace 32 SPACEBAR 键-------------------------------------------------------------------vbKeyPageUp 33 PAGEUP 键------------------------------------------------------------------- vbKeyPageDown 34 PAGEDOWN 键-------------------------------------------------------------------vbKeyEnd 35 END 键-------------------------------------------------------------------vbKeyHome 36 HOME 键------------------------------------------------------------------vbKeyLeft 37 LEFT ARROW 键←-------------------------------------------------------------------vbKeyUp 38 UP ARROW 键↑-------------------------------------------------------------------vbKeyRight 39 RIGHT ARROW 键→-------------------------------------------------------------------vbKeyDown 40 DOWN ARROW 键↓-------------------------------------------------------------------vbKeySelect 41 SELECT 键-------------------------------------------------------------------vbKeyPrint 42 PRINT SCREEN 键-------------------------------------------------------------------vbKeyExecute 43 EXECUTE 键-------------------------------------------------------------------vbKeySnapshot 44 SNAP SHOT 键-------------------------------------------------------------------vbKeyInser 45 INSERT 键-------------------------------------------------------------------vbKeyDelete 46 DELETE 键-------------------------------------------------------------------vbKeyHelp 47 HELP 键------------------------------------------------------------------vbKey0 48 0 键-------------------------------------------------------------------vbKey1 49 1 键-------------------------------------------------------------------vbKey2 50 2 键-------------------------------------------------------------------vbKey3 51 3 键-------------------------------------------------------------------vbKey4 52 4 键-------------------------------------------------------------------vbKey5 53 5 键-------------------------------------------------------------------vbKey6 54 6 键-------------------------------------------------------------------vbKey7 55 7 键-------------------------------------------------------------------vbKey8 56 8 键-------------------------------------------------------------------vbKey9 57 9 键------------------------------------------------------------------vbKeyA 65 A 键-------------------------------------------------------------------vbKeyB 66 B 键-------------------------------------------------------------------------------------------------------------------------------------- vbKeyD 68 D 键------------------------------------------------------------------- vbKeyE 69 E 键------------------------------------------------------------------- vbKeyF 70 F 键------------------------------------------------------------------- vbKeyG 71 G 键------------------------------------------------------------------- vbKeyH 72 H 键------------------------------------------------------------------- vbKeyI 73 I 键------------------------------------------------------------------- vbKeyJ 74 J 键------------------------------------------------------------------- vbKeyK 75 K 键------------------------------------------------------------------- vbKeyL 76 L 键------------------------------------------------------------------- vbKeyM 77 M 键------------------------------------------------------------------- vbKeyN 78 N 键------------------------------------------------------------------- vbKeyO 79 O 键------------------------------------------------------------------- vbKeyP 80 P 键------------------------------------------------------------------- vbKeyQ 81 Q 键------------------------------------------------------------------- vbKeyR 82 R 键------------------------------------------------------------------- vbKeyS 83 S 键------------------------------------------------------------------- vbKeyT 84 T 键------------------------------------------------------------------- vbKeyU 85 U 键------------------------------------------------------------------- vbKeyV 86 V 键------------------------------------------------------------------- vbKeyW 87 W 键------------------------------------------------------------------- vbKeyX 88 X 键--------------------------------------------------------------------------------------------------------------------------------------vbKeyZ 90 Z 键-------------------------------------------------------------------vbKeyNum0 96 0 键(在数字小键盘上) -------------------------------------------------------------------vbKeyNum1 97 1 键(在数字小键盘上) -------------------------------------------------------------------vbKeyNum2 98 2 键(在数字小键盘上) -------------------------------------------------------------------vbKeyNum3 99 3 键(在数字小键盘上) -------------------------------------------------------------------vbKeyNum4 100 4 键(在数字小键盘上) -------------------------------------------------------------------vbKeyNum5 101 5 键(在数字小键盘上) -------------------------------------------------------------------vbKeyNum6 102 6 键(在数字小键盘上) -------------------------------------------------------------------vbKeyNum7 103 7 键(在数字小键盘上) -------------------------------------------------------------------vbKeyNum8 104 8 键(在数字小键盘上) -------------------------------------------------------------------vbKeyNum9 105 9 键(在数字小键盘上) -------------------------------------------------------------------vbKeyMultiply 106 乘号(*) 键-------------------------------------------------------------------vbKeyAdd 107 加号(+) 键-------------------------------------------------------------------vbKeySeparator 108 Enter键(在数字小键盘上) -------------------------------------------------------------------vbKeySubtract 109 减号(-) 键-------------------------------------------------------------------vbKeyDecimal 110 小数点(.) 键-------------------------------------------------------------------vbKeyDivide 111 除号(/) 键-------------------------------------------------------------------vbKeyF1 112 F1 键-------------------------------------------------------------------vbKeyF2 113 F2 键-------------------------------------------------------------------vbKeyF3 114 F3 键-------------------------------------------------------------------vbKeyF4 115 F4 键--------------------------------------------------------------------------------------------------------------------------------------vbKeyF6 117 F6 键-------------------------------------------------------------------vbKeyF7 118 F7 键-------------------------------------------------------------------vbKeyF8 119 F8 键-------------------------------------------------------------------vbKeyF9 120 F9 键-------------------------------------------------------------------vbKeyF10 121 F10 键-------------------------------------------------------------------vbKeyF11 122 F11 键-------------------------------------------------------------------vbKeyF12 123 F12 键-------------------------------------------------------------------vbKeyF13 124 F13 键-------------------------------------------------------------------vbKeyF14 125 F14 键-------------------------------------------------------------------vbKeyF15 126 F15 键-------------------------------------------------------------------vbKeyF16 127 F16 键------------------------------------------------------------------- vbKeyNumlock 144 NUM LOCK 键-------------------------------------------------------------------。
键值表
0x1 鼠标左键0x2 鼠标右键0x3 CANCEL 键0x4 鼠标中键0x8 BACKSPACE 键0x9 TAB 键0xC CLEAR 键0xD ENTER 键0x10 SHIFT 键0x11 CTRL 键0x12 MENU 键0x13 PAUSE 键0x14 CAPS LOCK 键0x1B ESC 键0x20 SPACEBAR 键0x21 PAGE UP 键0x22 PAGE DOWN 键0x23 END 键0x24 HOME 键0x25 LEFT ARROW 键0x26 UP ARROW 键0x27 RIGHT ARROW 键0x28 DOWN ARROW 键0x29 SELECT 键0x2A PRINT SCREEN 键0x2B EXECUTE 键0x2C SNAPSHOT 键0x2D INSERT 键0x2E DELETE 键0x2F HELP 键0x90 NUM LOCK 键A 至 Z 键与 A - Z 字母的 ASCII 码相同:值描述65 A 键66 B 键67 C 键68 D 键69 E 键70 F 键71 G 键72 H 键73 I 键74 J 键75 K 键76 L 键77 M 键78 N 键79 O 键80 P 键81 Q 键82 R 键83 S 键84 T 键85 U 键86 V 键87 W 键88 X 键89 Y 键90 Z 键0 至 9 键与数字 0 - 9 的 ASCII 码相同:值描述48 0 键49 1 键50 2 键51 3 键52 4 键53 5 键54 6 键55 7 键56 8 键57 9 键下列常数代表数字键盘上的键:值描述0x60 0 键0x61 1 键0x62 2 键0x63 3 键0x64 4 键0x65 5 键0x66 6 键0x67 7 键0x68 8 键0x69 9 键0x6A MULTIPLICATION SIGN (*) 键0x6B PLUS SIGN (+) 键0x6C ENTER 键0x6D MINUS SIGN (-) 键0x6E DECIMAL POINT (.) 键0x6F DIVISION SIGN (/) 键下列常数代表功能键:值描述0x70 F1 键0x71 F2 键0x72 F3 键0x73 F4 键0x74 F5 键0x75 F6 键0x76 F7 键0x77 F8 键0x78 F9 键0x79 F10 键0x7A F11 键0x7B F12 键0x7C F13 键0x7D F14 键0x7E F15 键0x7F F16 键亦可以用VK_值Virtual Key Code Corresponding keyVK_LBUTTON Left mouse buttonVK_RBUTTON Right mouse button VK_CANCEL Control+BreakVK_MBUTTON Middle mouse button VK_BACK Backspace keyVK_TAB Tab keyVK_CLEAR Clear keyVK_RETURN Enter keyVK_SHIFT Shift keyVK_CONTROL Ctrl keyVK_MENU Alt keyVK_PAUSE Pause keyVK_CAPITAL Caps Lock keyVK_KANA Used with IMEVK_HANGUL Used with IMEVK_JUNJA Used with IMEVK_FINAL Used with IMEVK_HANJA Used with IMEVK_KANJI Used with IMEVK_CONVERT Used with IMEVK_NONCONVERT Used with IMEVK_ACCEPT Used with IMEVK_MODECHANGE Used with IMEVK_ESCAPE Esc keyVK_SPACE Space barVK_PRIOR Page Up keyVK_NEXT Page Down keyVK_END End keyVK_HOME Home keyVK_LEFT Left Arrow keyVK_UP Up Arrow keyVK_RIGHT Right Arrow keyVK_DOWN Down Arrow keyVK_SELECT Select keyVK_PRINT Print key (keyboard-specific)VK_EXECUTE Execute keyVK_SNAPSHOT Print Screen keyVK_INSERT Insert keyVK_DELETE Delete keyVK_HELP Help keyVK_LWIN Left Windows key (Microsoft keyboard) VK_RWIN Right Windows key (Microsoft keyboard) VK_APPS Applications key (Microsoft keyboard)VK_NUMPAD0 0 key (numeric keypad)VK_NUMPAD1 1 key (numeric keypad)VK_NUMPAD2 2 key (numeric keypad)VK_NUMPAD3 3 key (numeric keypad)VK_NUMPAD4 4 key (numeric keypad)VK_NUMPAD5 5 key (numeric keypad)VK_NUMPAD6 6 key (numeric keypad)VK_NUMPAD7 7 key (numeric keypad)VK_NUMPAD8 8 key (numeric keypad)VK_NUMPAD9 9 key (numeric keypad)VK_MULTIPLY Multiply key (numeric keypad)VK_ADD Add key (numeric keypad)VK_SEPARATOR Separator key (numeric keypad)VK_SUBTRACT Subtract key (numeric keypad)VK_DECIMAL Decimal key (numeric keypad)VK_DIVIDE Divide key (numeric keypad)VK_F1 F1 keyVK_F2 F2 keyVK_F3 F3 keyVK_F4 F4 keyVK_F5 F5 keyVK_F6 F6 keyVK_F7 F7 keyVK_F8 F8 keyVK_F9 F9 keyVK_F10 F10 keyVK_F11 F11 keyVK_F12 F12 keyVK_F13 F13 keyVK_F14 F14 keyVK_F15 F15 keyVK_F16 F16 keyVK_F17 F17 keyVK_F18 F18 keyVK_F19 F19 keyVK_F20 F20 keyVK_F21 F21 keyVK_F22 F22 keyVK_F23 F23 keyVK_F24 F24 keyVK_NUMLOCK Num Lock keyVK_SCROLL Scroll Lock keyVK_LSHIFTLeft Shift key (only used with GetAsyncKeyState and GetKeyState) VK_RSHIFTRight Shift key (only used with GetAsyncKeyState and GetKeyState) VK_LCONTROLLeft Ctrl key (only used with GetAsyncKeyState and GetKeyState) VK_RCONTROLRight Ctrl key (only used with GetAsyncKeyState and GetKeyState)VK_LMENULeft Alt key (only used with GetAsyncKeyState and GetKeyState)VK_RMENURight Alt key (only used with GetAsyncKeyState and GetKeyState) VK_PROCESSKEY Process keyVK_ATTN Attn keyVK_CRSEL CrSel keyVK_EXSEL ExSel keyVK_EREOF Erase EOF keyVK_PLAY Play keyVK_ZOOM Zoom keyVK_NONAME Reserved for future use VK_PA1 PA1 keyVK_OEM_CLEAR Clear key。
VB的keycode和keyascii大全及应用
VB的keycode和keyascii大全及应用Vb的keycode和keyasciiVB KeyCode 常数表常数值描述常数值描述vbKeyLButton 0x1 鼠标左键vbKeyT 84 T 键vbKeyRButton 0x2 鼠标右键vbKeyU 85 U 键vbKeyCancel 0x3 CANCEL 键vbKeyV 86 V 键vbKeyMButton 0x4 鼠标中键vbKeyW 87 W 键vbKeyBack 0x8 BACKSPACE 键vbKeyX 88 X 键vbKeyTab 0x9 TAB 键vbKeyY 89 Y 键vbKeyClear 0xC CLEAR 键vbKeyZ 90 Z 键vbKeyReturn 0xD ENTER 键vbKeyShift 0x10 SHIFT 键vbKey0 48 0 键vbKeyControl 0x11 CTRL 键vbKey1 49 1 键vbKeyMenu 0x12 MENU 键vbKey2 50 2 键vbKeyPause 0x13 PAUSE 键vbKey3 51 3 键vbKeyCapital 0x14 CAPS LOCK 键vbKey4 52 4 键vbKeyEscape 0x1B ESC 键vbKey5 53 5 键vbKeySpace 0x20 SPACEBAR 键vbKey6 54 6 键vbKeyPageUp 0x21 PAGE UP 键vbKey7 55 7 键vbKeyEnd 0x23 END 键vbKey8 56 8 键vbKeyHome 0x24 HOME 键vbKey9 57 9 键vbKeyLeft 0x25 LEFT ARROW 键vbKeyUp 0x26 UP ARROW 键vbKeyRight 0x27 RIGHT ARROW 键vbKeyNumpad0 0x60 0 键vbKeyDown 0x28 DOWN ARROW 键vbKeyNumpad1 0x61 1 键vbKeySelect 0x29 SELECT 键vbKeyNumpad2 0x62 2 键vbKeyPrint 0x2A PRINT SCREEN 键vbKeyNumpad3 0x63 3 键vbKeyExecute 0x2B EXECUTE 键vbKeyNumpad4 0x64 4 键vbKeySnapshot 0x2C SNAPSHOT 键vbKeyNumpad5 0x65 5 键vbKeyDelete 0x2E DELETE 键vbKeyNumpad6 0x66 6 键vbKeyHelp 0x2F HELP 键vbKeyNumpad7 0x67 7 键vbKeyNumlock 0x90 NUM LOCK 键vbKeyNumpad8 0x68 8 键vbKeyNumpad9 0x69 9 键vbKeyA 65 A 键vbKeyMultiply 0x6A MULTIPLICATIONSIGN(*) vbKeyB 66 B 键vbKeyAdd 0x6B PLUS SIGN (+) 键vbKeyC 67 C 键vbKeySeparator 0x6C ENTER 键vbKeyD 68 D 键vbKeySubtract 0x6D MINUS SIGN (-) 键vbKeyE 69 E 键vbKeyDecimal 0x6E DECIMAL POINT (.) 键vbKeyF 70 F 键vbKeyDivide 0x6F DIVISION SIGN (/) 键vbKeyG 71 G 键vbKeyH 72 H 键vbKeyF1 0x70 F1 键vbKeyI 73 I 键vbKeyF2 0x71 F2 键vbKeyJ 74 J 键vbKeyF3 0x72 F3 键vbKeyK 75 K 键vbKeyF4 0x73 F4 键vbKeyL 76 L 键vbKeyF5 0x74 F5 键vbKeyM 77 M 键vbKeyF6 0x75 F6 键vbKeyN 78 N 键vbKeyF7 0x76 F7 键vbKeyO 79 O 键vbKeyF8 0x77 F8 键vbKeyP 80 P 键vbKeyF9 0x78 F9 键vbKeyQ 81 Q 键vbKeyF10 0x79 F10 键vbKeyR 82 R 键vbKeyF11 0x7A F11 键vbKeyS 83 S 键vbKeyF12 0x7B F12 键Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)Me.ClsPrint Chr$(KeyCode); KeyCodeEnd SubPrivate Sub Form_KeyDown(KeyAscii As Integer, Shift As Integer)Me.ClsPrint Chr$(KeyAscii); KeyAsciiEnd SubASCII码对照表ASCII, American Standard Code for Information Interchange 念起來像是"阿斯key",定義從0 到127 的一百二十八個數字所代表的英文字母或數字或符號,所有使用ASCII 的電腦之間可以互相讀取同一份文件而不會有不一樣的結果與意義。
VB键盘常量大全个虚拟键码
Public Const VK_LBUTTON = &H1 Public Const VK_RBUTTON = &H2 Public Const VK_CANCEL = &H3 Public Const VK_MBUTTON = &H4 Public Const VK_BACK = &H8 Public Const VK_TAB = &H9 Public Const VK_CLEAR = &HC Public Const VK_RETURN = &HD Public Const VK_SHIFT = &H10 Public Const VK_CONTROL = &H11 Public Const VK_MENU = &H12 Public Const VK_PAUSE = &H13 Public Const VK_CAPITAL = &H14 Public Const VK_ESCAPE = &H1B Public Const VK_SPACE = &H20 Public Const VK_PRIOR = &H21 Public Const VK_NEXT = &H22 Public Const VK_END = &H23 Public Const VK_HOME = &H24 Public Const VK_LEFT = &H25 Public Const VK_UP = &H26 Public Const VK_RIGHT = &H27 Public Const VK_DOWN = &H28 Public Const VK_Select = &H29 Public Const VK_PRINT = &H2A Public Const VK_EXECUTE = &H2BPublic Const VK_SNAPSHOT = &H2C Public Const VK_Insert = &H2D Public Const VK_Delete = &H2E Public Const VK_HELP = &H2F Public Const VK_0 = &H30Public Const VK_1 = &H31Public Const VK_2 = &H32Public Const VK_3 = &H33Public Const VK_4 = &H34Public Const VK_5 = &H35Public Const VK_6 = &H36Public Const VK_7 = &H37Public Const VK_8 = &H38Public Const VK_9 = &H39Public Const VK_A = &H41Public Const VK_B = &H42Public Const VK_C = &H43Public Const VK_D = &H44Public Const VK_E = &H45Public Const VK_F = &H46Public Const VK_G = &H47Public Const VK_H = &H48Public Const VK_I = &H49Public Const VK_J = &H4APublic Const VK_K = &H4BPublic Const VK_L = &H4CPublic Const VK_M = &H4DPublic Const VK_N = &H4EPublic Const VK_O = &H4FPublic Const VK_P = &H50Public Const VK_Q = &H51Public Const VK_R = &H52Public Const VK_S = &H53Public Const VK_T = &H54Public Const VK_U = &H55Public Const VK_V = &H56Public Const VK_W = &H57Public Const VK_X = &H58Public Const VK_Y = &H59Public Const VK_Z = &H5APublic Const VK_STARTKEY = &H5B Public Const VK_CONTEXTKEY = &H5D Public Const VK_NUMPAD0 = &H60 Public Const VK_NUMPAD1 = &H61 Public Const VK_NUMPAD2 = &H62 Public Const VK_NUMPAD3 = &H63 Public Const VK_NUMPAD4 = &H64 Public Const VK_NUMPAD5 = &H65 Public Const VK_NUMPAD6 = &H66 Public Const VK_NUMPAD7 = &H67 Public Const VK_NUMPAD8 = &H68 Public Const VK_NUMPAD9 = &H69Public Const VK_MULTIPLY = &H6A Public Const VK_ADD = &H6B Public Const VK_SEPARATOR = &H6C Public Const VK_SUBTRACT = &H6D Public Const VK_DECIMAL = &H6E Public Const VK_DIVIDE = &H6F Public Const VK_F1 = &H70Public Const VK_F2 = &H71Public Const VK_F3 = &H72Public Const VK_F4 = &H73Public Const VK_F5 = &H74Public Const VK_F6 = &H75Public Const VK_F7 = &H76Public Const VK_F8 = &H77Public Const VK_F9 = &H78Public Const VK_F10 = &H79 Public Const VK_F11 = &H7A Public Const VK_F12 = &H7B Public Const VK_F13 = &H7C Public Const VK_F14 = &H7D Public Const VK_F15 = &H7E Public Const VK_F16 = &H7F Public Const VK_F17 = &H80 Public Const VK_F18 = &H81 Public Const VK_F19 = &H82 Public Const VK_F20 = &H83Public Const VK_F21 = &H84Public Const VK_F22 = &H85Public Const VK_F23 = &H86Public Const VK_F24 = &H87Public Const VK_NUMLOCK = &H90 Public Const VK_OEM_SCROLL = &H91 Public Const VK_OEM_1 = &HBA Public Const VK_OEM_PLUS = &HBB Public Const VK_OEM_COMMA = &HBC Public Const VK_OEM_MINUS = &HBD Public Const VK_OEM_PERIOD = &HBE Public Const VK_OEM_2 = &HBF Public Const VK_OEM_3 = &HC0 Public Const VK_OEM_4 = &HDB Public Const VK_OEM_5 = &HDC Public Const VK_OEM_6 = &HDD Public Const VK_OEM_7 = &HDE Public Const VK_OEM_8 = &HDF Public Const VK_ICO_F17 = &HE0 Public Const VK_ICO_F18 = &HE1 Public Const VK_OEM102 = &HE2 Public Const VK_ICO_HELP = &HE3 Public Const VK_ICO_00 = &HE4 Public Const VK_ICO_CLEAR = &HE6 Public Const VK_OEM_RESET = &HE9 Public Const VK_OEM_JUMP = &HEAPublic Const VK_OEM_PA1 = &HEBPublic Const VK_OEM_PA2 = &HECPublic Const VK_OEM_PA3 = &HEDPublic Const VK_OEM_WSCTRL = &HEEPublic Const VK_OEM_CUSEL = &HEFPublic Const VK_OEM_ATTN = &HF0Public Const VK_OEM_FINNISH = &HF1Public Const VK_OEM_COPY = &HF2Public Const VK_OEM_AUTO = &HF3Public Const VK_OEM_ENLW = &HF4Public Const VK_OEM_BACKTAB = &HF5Public Const VK_ATTN = &HF6Public Const VK_CRSEL = &HF7Public Const VK_EXSEL = &HF8Public Const VK_EREOF = &HF9Public Const VK_PLAY = &HFAPublic Const VK_ZOOM = &HFBPublic Const VK_NONAME = &HFCPublic Const VK_PA1 = &HFDPublic Const VK_OEM_CLEAR = &HFE虚拟键码虚拟键码保存在WM_KEYDOWN、WM_KEYUP、WM_SYSKEYDOWN和WM_SYSKEYUP 讯息的wParam参数中。
VB键盘常用代码一览表
vbKeyC 67 字母 C 键
vbKeyD 68 字母 D 键
vbKeyE 69 字母 E 键
vbKeyF 70 字母 F 键
vbKeyG 71 字母 G 键
vbKeyH 72 字母 H 键
vbKeyI 73 字母 I 键
vbKeyJ 74 字母 J 键
vbKeyNumpad0 0x60 小键盘 0 键
vbKeyNumpad1 0x61 小键盘 1 键
vbKeyNumpad2 0x62 小键盘 2 键
vbKeyNumpad3 0x63 小键盘 3 键
vbKeyNumpad4 0x64 小键盘 4 键
vbKeyNumpad5 0x65 小键盘 5 键
vbKey2 50 数字 2 键
vbKey3 51 数字 3 键
vbKey4 52 数字 4 键
vbKey5 53 数字 5 键
vbKey6 54 数字 6 键
vbKey7 55 数字 7 键
vbKey8 56 数字 8 键
vbKey9 57 数字 9 键
vbKeyF1 0x70 F1 ቤተ መጻሕፍቲ ባይዱ能键
vbKeyEscape 0x1B ESC 键
vbKeySpace 0x20 空格键
vbKeyPageUp 0x21 Page Up 键
vbKeyPageDown 0x22 Page Down 键
vbKeyEnd 0x23 END 键
vbKeyHome 0x24 HOME 键
vbKeyLeft 0x25 光标左键
vbKeyNumpad6 0x66 小键盘 6 键
vbkey--键码
键码常数值描述vbKeyLButton 1 鼠标左键vbKeyRButton 2 鼠标右键vbKeyCancel 3 CANCEL 键vbKeyMButton 4 鼠标中键vbKeyBack 8 BACKSPACE 键vbKeyTab 9 TAB 键vbKeyClear 12 CLEAR 键vbKeyReturn 13 ENTER 键vbKeyShift 16 SHIFT 键vbKeyControl 17 CTRL 键vbKeyMenu 18 菜单键vbKeyPause 19 PAUSE 键vbKeyCapital 20 CAPS LOCK 键vbKeyEscape 27 ESC 键vbKeySpace 32 SPACEBAR 键vbKeyPageUp 33 PAGEUP 键vbKeyPageDown 34 PAGEDOWN 键vbKeyEnd 35 END 键vbKeyHome 36 HOME 键vbKeyLeft 37 LEFT ARROW 键vbKeyUp 38 UP ARROW 键vbKeyRight 39 RIGHT ARROW 键vbKeyDown 40 DOWN ARROW 键vbKeySelect 41 SELECT 键vbKeyPrint 42 PRINT SCREEN 键vbKeyExecute 43 EXECUTE 键vbKeySnapshot 44 SNAP SHOT 键vbKeyInser 45 INS 键vbKeyDelete 46 DEL 键vbKeyHelp 47 HELP 键vbKeyNumlock 144 NUM LOCK 键A 键到Z 键与其ASCII 码的相应值'A' 到'Z' 是一致的常数值描述vbKeyA 65 A 键vbKeyB 66 B 键vbKeyC 67 C 键vbKeyD 68 D 键vbKeyE 69 E 键vbKeyF 70 F 键vbKeyG 71 G 键vbKeyH 72 H 键vbKeyI 73 I 键vbKeyJ 74 J 键vbKeyK 75 K 键vbKeyL 76 L 键vbKeyM 77 M 键vbKeyN 78 N 键vbKeyO 79 O 键vbKeyP 80 P 键vbKeyQ 81 Q 键vbKeyR 82 R 键vbKeyS 83 S 键vbKeyT 84 T 键vbKeyU 85 U 键vbKeyV 86 V 键vbKeyW 87 W 键vbKeyX 88 X 键vbKeyY 89 Y 键vbKeyZ 90 Z 键0 键到9 键与其ASCII 码的相应值'0' 到'9' 是一致的常数值描述vbKey0 48 0 键vbKey1 49 1 键vbKey2 50 2 键vbKey3 51 3 键vbKey4 52 4 键vbKey5 53 5 键vbKey6 54 6 键vbKey7 55 7 键vbKey8 56 8 键vbKey9 57 9 键数字小键盘上的键常数值描述vbKeyNumpad0 96 0 键vbKeyNumpad1 97 1 键vbKeyNumpad2 98 2 键vbKeyNumpad3 99 3 键vbKeyNumpad4 100 4 键vbKeyNumpad5 101 5 键vbKeyNumpad6 102 6 键vbKeyNumpad7 103 7 键vbKeyNumpad8 104 8 键vbKeyNumpad9 105 9 键vbKeyMultiply 106 乘号(*) 键vbKeyAdd 107 加号(+) 键vbKeySeparator 108 ENTER 键(在数字小键盘上)vbKeySubtract 109 减号(-) 键vbKeyDecimal 110 小数点(.) 键vbKeyDivide 111 除号(/) 键功能键常数值描述vbKeyF1 112 F1 键vbKeyF2 113 F2 键vbKeyF3 114 F3 键vbKeyF4 115 F4 键vbKeyF5 116 F5 键vbKeyF6 117 F6 键vbKeyF7 118 F7 键vbKeyF8 119 F8 键vbKeyF9 120 F9 键vbKeyF10 121 F10 键vbKeyF11 122 F11 键vbKeyF12 123 F12 键vbKeyF13 124 F13 键vbKeyF14 125 F14 键vbKeyF15 126 F15 键vbKeyF16 127 F16 键回答者:hxf0663|六级| 2008-7-8 16:59vbKeyA 就是65回答者:Worsley_Barbar|六级| 2008-7-8 17:00这个是不需要转化的,例如vbKeyA之类是VB提供的内部常量.也就是说vbKeyA 和65是完全相等的,即使用vbKeyA代入到算式中起到的作用也是和65是一样的.是一个一位两面体.既然是一位两面体也就无所谓转化了.下面就是这些常量了.vbKeyLButton 1 鼠标左键vbKeyRButton 2 鼠标右键vbKeyCancel 3 CANCEL 键vbKeyMButton 4 鼠标中键vbKeyBack 8 BACKSPACE 键vbKeyTab 9 TAB 键vbKeyClear 12 CLEAR 键vbKeyReturn 13 ENTER 键vbKeyShift 16 SHIFT 键vbKeyControl 17 CTRL 键vbKeyMenu 18 菜单键vbKeyPause 19 PAUSE 键vbKeyCapital 20 CAPS LOCK 键vbKeyEscape 27 ESC 键vbKeySpace 32 SPACEBAR 键vbKeyPageUp 33 PAGEUP 键vbKeyPageDown 34 PAGEDOWN 键vbKeyEnd 35 END 键vbKeyHome 36 HOME 键vbKeyLeft 37 LEFT ARROW 键vbKeyUp 38 UP ARROW 键vbKeyRight 39 RIGHT ARROW 键vbKeyDown 40 DOWN ARROW 键vbKeySelect 41 SELECT 键vbKeyPrint 42 PRINT SCREEN 键vbKeyExecute 43 EXECUTE 键vbKeySnapshot 44 SNAP SHOT 键vbKeyInser 45 INS 键vbKeyDelete 46 DEL 键vbKeyHelp 47 HELP 键vbKeyNumlock 144 NUM LOCK 键A 键到Z 键与其ASCII 码的相应值'A' 到'Z' 是一致的常数值描述vbKeyA 65 A 键vbKeyB 66 B 键vbKeyC 67 C 键vbKeyD 68 D 键vbKeyE 69 E 键vbKeyF 70 F 键vbKeyG 71 G 键vbKeyH 72 H 键vbKeyI 73 I 键vbKeyJ 74 J 键vbKeyK 75 K 键vbKeyL 76 L 键vbKeyM 77 M 键vbKeyN 78 N 键vbKeyO 79 O 键vbKeyP 80 P 键vbKeyQ 81 Q 键vbKeyR 82 R 键vbKeyS 83 S 键vbKeyT 84 T 键vbKeyU 85 U 键vbKeyV 86 V 键vbKeyW 87 W 键vbKeyX 88 X 键vbKeyY 89 Y 键vbKeyZ 90 Z 键0 键到9 键与其ASCII 码的相应值'0' 到'9' 是一致的常数值描述vbKey0 48 0 键vbKey1 49 1 键vbKey2 50 2 键vbKey3 51 3 键vbKey4 52 4 键vbKey5 53 5 键vbKey6 54 6 键vbKey7 55 7 键vbKey8 56 8 键vbKey9 57 9 键数字小键盘上的键常数值描述vbKeyNumpad0 96 0 键vbKeyNumpad1 97 1 键vbKeyNumpad2 98 2 键vbKeyNumpad3 99 3 键vbKeyNumpad4 100 4 键vbKeyNumpad5 101 5 键vbKeyNumpad6 102 6 键vbKeyNumpad7 103 7 键vbKeyNumpad8 104 8 键vbKeyNumpad9 105 9 键vbKeyMultiply 106 乘号(*) 键vbKeyAdd 107 加号(+) 键vbKeySeparator 108 ENTER 键(在数字小键盘上)vbKeySubtract 109 减号(-) 键vbKeyDecimal 110 小数点(.) 键vbKeyDivide 111 除号(/) 键功能键常数值描述vbKeyF1 112 F1 键vbKeyF2 113 F2 键vbKeyF3 114 F3 键vbKeyF4 115 F4 键vbKeyF5 116 F5 键vbKeyF6 117 F6 键vbKeyF7 118 F7 键vbKeyF8 119 F8 键vbKeyF9 120 F9 键vbKeyF10 121 F10 键vbKeyF11 122 F11 键vbKeyF12 123 F12 键vbKeyF13 124 F13 键vbKeyF14 125 F14 键vbKeyF15 126 F15 键vbKeyF16 127 F16 键。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
F4 F5 F6 F7 F8 F9 F10 F11 F12 ` 1 2 3 4 5 6 7 8 9 0 = 0&Ins 1&End 2&↓ 3&PgDn 4&← 5 6&→ 7&Home 8&↑ 9&PgUp + .&Del *
3E 3F 40 41 42 43 44 85 86 29 02 03 04 05 06 07 08 09 0A 0B 0C 0D 52 4F 50 51 4B 4C 4D 47 48 49 4E 4A 53 37
46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B-5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F
F键 G键 H键 I键 J键 K键 L键 M键 N键 O键 P键 Q键 R键 S键 T键 U键 V键 W键 X键 Y键 Z键 未定义 数字键0键 数字键1键 数字键2键 数字键3键 数字键4键 数字键5键 数字键6键 数字键7键 数字键8键 数字键9键 *键 +键 Separator键 -键 .键 /键 F1键 F2键 F3键 F4键 F5键 F6键 F7键 F8键 F9键 F10键 F11键 F12键 F13键 F14键 F15键 F16键
61 62 63 64 65 66 67 89 8A
00 00 00 00 00 00 00 00 00
03
00
07
1E
0C 92 75 91 76 73 8F 74 77 8D 84 90 8E 93 96
1F 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6B 6C 6D 6E 6F 70 71 8B 8C 29 78 79 7A 7B 7C 7D 7E 7F 80 81 82 83 00 00 00 00 00 00 00 00 00 00 4E 4A 37
57 58 59 5A 5B 5C 5D 87 88 29 2 3 4 5 6 7 8 9 0A 0B 0C 0D 52 4F 50 51 4B 4C 4D 47 48 49 4E 4A 53 37
00 00 00 00 00 00 00 00 00 7E 21 40 23 24 25 5E 26 2A 38 29 5F 2B 30 31 32 33 34 35 36 37 38 39 2B 2D 2E 2A
00 00 00 00 00 00 00 00 00 60 31 32 33 34 35 36 37 38 39 30 2D 3D 00 00 00 00 00 00 00 00 00 00 2B 2D 00 2A
VK_F17 VK_F18 VK_F19 VK_F20 VK_F21 VK_F22 VK_F23 VK_F24 VK_NUMLOCK VK_SCROLL
80 81 82 83 84 85 86 87 88-8F 90 91 92-B9 BA-C0 C1-DA DB-E4 E5 E6 E7-E8 E9-F5 F6-FE
128 F17键 129 F18键 130 F19键 131 F20键 132 F21键 133 F22键 134 F23键 135 F24键 136-143 未指定 144 NumLock键 145 ScrollLock键 146-185 未指定 186-192 OEM自订 193-218 未指定 219-228 OEM自订 229 未指定 230 OEM自订 231-232 未指定 233-245 OEM自订 246-254 未指定
鼠标或按钮的值 鼠标左键钮 鼠标右键钮 Ctrl-break执行 鼠标中键钮 未定义 Backspace键 Tab键 未定义 Clear键 Enter键 未定义 Shift键 Ctrl键 Alt键 Pause键 CapsLock键 保留 未定义 Esc键 保留 SpaceBar键 PageUp键 PageDown键 End键 Home键 Left键 Up键 Right键 Down键 Select键 OEM自订使用 Execute键 PrintScreen键 Ins键 Del键 Help键 0键 1键 2键 3键 4键 5键 6键 7键 8键 9键 未定义 A键 B键 C键 D键 E键
常量名称 VK_LBUTTON VK_RBUTTON VK_CANCEL VK_MBUTTON VK_BACK VK_TAB VK_CLEAR VK_RETURN VK_SHIFT VK_CONTROL VK_MENU VK_PAUSE VK_CAPITAL
ห้องสมุดไป่ตู้
VK_ESCAPE VK_SPACE VK_PRIOR VK_NEXT VK_END VK_HOME VK_LEFT VK_UP VK_RIGHT VK_DOWN VK_SELECT VK_EXECUTE VK_SNAPSHOT VK_INSERT VK_DELETE VK_HELP VK_0 VK_1 VK_2 VK_3 VK_4 VK_5 VK_6 VK_7 VK_8 VK_9 VK_A VK_B VK_C VK_D VK_E
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 02 03 04 05 06 07 08 09 00 00 00
ASCII码表 高 位 低位 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 000 NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI 001 DEL DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US 按键编码表 按键 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Space F1 F2 F3 单键 扫描码 ASCII码 1E 61 30 62 2E 63 20 64 12 65 21 66 22 67 23 68 17 69 24 6A 25 6B 26 6C 32 6D 31 6E 18 6F 19 70 10 71 13 72 1F 73 14 74 16 75 2F 76 11 77 2D 78 15 79 2C 7A 39 20 3B 00 3C 00 3D 00
按键编码表 SHIFT CTRL ALT 扫描码 ASCII码 扫描码 ASCII码 扫描码 ASCII码 1E 41 1E 01 1E 00 30 42 30 02 30 00 2E 43 2E 03 2E 00 20 44 20 04 20 00 12 45 12 05 12 00 21 46 21 06 21 00 22 47 22 07 22 00 23 48 23 08 23 00 17 49 17 09 17 00 24 4A 24 0A 24 00 25 4B 25 0B 25 00 26 4C 26 0C 26 00 32 4D 32 0D 32 00 31 4E 31 0E 31 00 18 4F 18 0F 18 00 19 50 19 10 19 00 10 51 10 11 10 00 13 52 13 12 13 00 1F 53 1F 13 1F 00 14 54 14 14 14 00 16 55 16 15 16 00 2F 56 2F 16 2F 00 11 57 11 17 11 00 2D 58 2D 18 2D 00 15 59 15 19 15 00 2C 5A 2C 1A 2C 00 39 20 39 20 39 20 54 00 5E 00 68 00 55 00 5F 00 69 00 56 00 60 00 6A 00
十六进制 十进制 1 1 2 2 3 3 4 4 05-07 05-07 8 8 9 9 0A-0B 10-11 0C 12 0D 13 0E-0F 14-15 10 16 11 17 12 18 13 19 14 20 15-19 21-25 1A 26 1B 27 1C-1F 28-31 20 32 21 33 22 34 23 35 24 36 25 37 26 38 27 39 28 40 29 41 2A 42 2B 43 2C 44 2D 45 2E 46 2F 47 30 48 31 49 32 50 33 51 34 52 35 53 36 54 37 55 38 56 39 57 3A-40 58-64 41 65 42 66 43 67 44 68 45 69
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91-95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
ASCII码表 010 SP ! “ # $ % & ‘ ( ) * + < . / 011 0 1 2 3 4 5 6 7 8 9 : ; L = > ? 100 @ A B C D E F G H I J K \ M N O 101 P Q R S T U V W X Y Z [ l ] ^ _ 110 ` a b c d e f g h i j k | m n o 111 p q r s t u v w x y z { } ~ Del
VK_F VK_G VK_H VK_I VK_J VK_K VK_L VK_M VK_N VK_O VK_P VK_Q VK_R VK_S VK_T VK_U VK_V VK_W VK_X VK_Y VK_Z VK_NUMPAD0 VK_NUMPAD1 VK_NUMPAD2 VK_NUMPAD3 VK_NUMPAD4 VK_NUMPAD5 VK_NUMPAD6 VK_NUMPAD7 VK_NUMPAD8 VK_NUMPAD9 VK_MULTIPLY VK_ADD VK_SEPARATOR VK_SUBTRACT VK_DECIMAL VK_DIVIDE VK_F1 VK_F2 VK_F3 VK_F4 VK_F5 VK_F6 VK_F7 VK_F8 VK_F9 VK_F10 VK_F11 VK_F12 VK_F13 VK_F14 VK_F15 VK_F16