Professional Documents
Culture Documents
Character encoding is useful in web development for displaying non-standard characters, generating character strings from nu
To display Unicode (ASCII) characters in HTML use &#XXX; in C# use Convert.ToChar(XXX), in VBScript, VB.NET and PHP use the
ASCII codes were originially developed for teletype machines and the first 32 characters are non-printing (bell, backspace, etc.
Keycode constants
Article
03/30/2022
2 minutes to read
The following constants can be used anywhere in your code in place of the actual values.
Descripti
Constant Value
on
Left
vbKeyLBu
0x1 mouse
tton
button
Right
vbKeyRBu 0x2
mouse
tton
button
vbKeyCan 0x3 CANCEL
cel key
Middle
vbKeyMB
0x4 mouse
utton
button
vbKeyBac 0x8 BACKSPA
k CE key
vbKeyCle CLEAR
0xC
ar key
vbKeyRet ENTER
0xD
urn key
vbKeyShi
0x10 SHIFT key
ft
vbKeyCon
0x11 CTRL key
trol
vbKeyMe MENU
0x12
nu key
vbKeyPau PAUSE
0x13
se key
vbKeyCap 0x14 CAPS
ital LOCK key
vbKeyEsc
0x1B ESC key
ape
vbKeySpa 0x20 SPACEBA
ce R key
vbKeyPag PAGE UP
0x21
eUp key
vbKeyPag PAGE
0x22 DOWN
eDown key
vbKeyHo HOME
me 0x24 key
LEFT
vbKeyLeft 0x25 ARROW
key
UP
vbKeyUp 0x26 ARROW
key
RIGHT
vbKeyRig 0x27
ARROW
ht
key
DOWN
vbKeyDo 0x28 ARROW
wn key
vbKeySel 0x29 SELECT
ect key
vbKeyPri PRINT
0x2A SCREEN
nt
key
vbKeyExe EXECUTE
0x2B
cute key
vbKeySna SNAPSHO
pshot 0x2C T key
vbKeyIns INSERT
0x2D
ert key
vbKeyDel DELETE
0x2E
ete key
vbKeyHel
p 0x2F HELP key
vbKeyNu NUM
mlock 0x90 LOCK key
A key - Z key
The A key through the Z key are the same as the ASCII equivalents A–Z.
0 key - 9 key
The 0 key through 9 key are the same as their ASCII equivalents 0–9.
Descripti
Constant Value
on
vbKey0 48 0 key
vbKey1 49 1 key
vbKey2 50 2 key
vbKey3 51 3 key
vbKey4 52 4 key
vbKey5 53 5 key
vbKey6 54 6 key
vbKey7 55 7 key
vbKey8 56 8 key
vbKey9 57 9 key
vbKeyNu
0x62 2 key
mpad2
vbKeyNu
0x63 3 key
mpad3
vbKeyNu
0x64 4 key
mpad4
vbKeyNu
mpad5 0x65 5 key
vbKeyNu 0x66
6 key
mpad6
vbKeyNu 0x67 7 key
mpad7
vbKeyNu 0x68 8 key
mpad8
vbKeyNu 0x69
9 key
mpad9
MULTIPLI
vbKeyMul CATION
0x6A
tiply SIGN (*)
key
PLUS
vbKeyAd
0x6B SIGN (+)
d
key
vbKeySep ENTER
0x6C
arator key
MINUS
vbKeySub 0x6D
SIGN (-)
tract
key
DECIMAL
vbKeyDec 0x6E
POINT (.)
imal
key
DIVISION
vbKeyDivi
0x6F SIGN (/)
de key
Function keys
Script, VB.NET and PHP use the chr(XXX) function, in JavaScript use String.fromCharCode(XXX), where XXX is the entity number.
219 Û
220 Ü
221 Ý
222 Þ
223 ß
224 à
225 á
226 â
227 ã
228 ä
229 å
230 æ
231 ç
232 è
233 é
234 ê
235 ë
236 ì
237 í
238 î
239 ï
240 ð
241 ñ
242 ò
243 ó
244 ô
245 õ
246 ö
247 ÷
248 ø
249 ù
250 ú
251 û
252 ü
253 ý
254 þ
255 ÿ