Postada em 25/5/2002 por Luciana VB6 Key Codes ============== Constant Value Description vbKeyLButton &H1 Left mouse button vbKeyRButton &H2 Right mouse button vbKeyCancel &H3 CANCEL key vbKeyMButton &H4 Middle mouse button vbKeyBack &H8 BACKSPACE key vbKeyTab &H9 TAB key vbKeyClear &HC CLEAR key vbKeyReturn &HD ENTER key vbKeyShift &H10 SHIFT key vbKeyControl &H11 CTRL key vbKeyMenu &H12 MENU key vbKeyPause &H13 PAUSE key vbKeyCapital &H14 CAPS LOCK key vbKeyEscape &H1B ESC key vbKeySpace &H20 SPACEBAR key vbKeyPageUp &H21 PAGE UP key vbKeyPageDown &H22 PAGE DOWN key vbKeyEnd &H23 END key vbKeyHome &H24 HOME key vbKeyLeft &H25 LEFT ARROW key vbKeyUp &H26 UP ARROW key vbKeyRight &H27 RIGHT ARROW key vbKeyDown &H28 DOWN ARROW key vbKeySelect &H29 SELECT key vbKeyPrint &H2A PRINT SCREEN key vbKeyExecute &H2B EXECUTE key vbKeySnapshot &H2C SNAPSHOT key vbKeyInsert &H2D INS key vbKeyDelete &H2E DEL key vbKeyHelp &H2F HELP key vbKeyNumlock &H90 NUM LOCK key
KeyA Through KeyZ Are the Same as Their ASCII Equivalents: 'A' Through 'Z' Constant Value Description vbKeyA 65 A key vbKeyB 66 B key vbKeyC 67 C key vbKeyD 68 D key vbKeyE 69 E key vbKeyF 70 F key vbKeyG 71 G key vbKeyH 72 H key vbKeyI 73 I key vbKeyJ 74 J key vbKeyK 75 K key vbKeyL 76 L key vbKeyM 77 M key vbKeyN 78 N key vbKeyO 79 O key vbKeyP 80 P key vbKeyQ 81 Q key vbKeyR 82 R key vbKeyS 83 S key vbKeyT 84 T key vbKeyU 85 U key vbKeyV 86 V key vbKeyW 87 W key vbKeyX 88 X key vbKeyY 89 Y key vbKeyZ 90 Z key
Key0 Through Key9 Are the Same as Their ASCII Equivalents: '0' Through '9 Constant Value Description 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