Don't know this keyboard events, and explanation
CodePudding user response:
Which is the keyboard events, please?
CodePudding user response:
KeyPress event: the event when the user presses and an ANSI release button,
KeyDown event has occurred: when an object has the focus by pressing (KeyDown) occurs when a key
KeyUp event: when an object has the focus (KeyUp) a release button
CodePudding user response:
refer to the second floor response: VB amateurs KeyPress event: the event when the user presses and an ANSI release button, KeyDown event has occurred: when an object has the focus by pressing (KeyDown) occurs when a key KeyUp event: when an object has the focus to loosen (KeyUp) occurs when a key Keydown inside the shift parameters CodePudding user response:
Shift parameters used to represent events occur, shift, CTRL, Alt three key state Constant value description VbShiftMask 1 SHIFT key bit mask, VbCtrlMask 2 CTRL key bit mask, VbAltMask 4 the ALT key bit mask, In this directly see the VB description, also can search the Internet to find CodePudding user response:
The MSDN Library: Shift parameter is when the incident response shift, CTRL and ALT key state of an integer, Shift parameter is a domain, it USES the least bit response shift key (0), CTRL key (1) and (2) the ALT key, these correspond to the value of 1, 2 and 4, can be based on some, all or nothing Settings to point to have some, all or zero key is pressed, Which means that when you press the other keys, have at the same time press the SHIFT, CTRL and ALT keys Shift=1 said the shift key was pressed Shift=2 indicates that the CTRL key is press the Shift=4 indicates that the ALT key is press the Shift=3 means the shift key and the CTRL key and press the Shift=5 said the shift key and the ALT key and press the Shift=6 said CTRL and ALT keys and press the Shift=7, said the shift key, CTRL and ALT keys and press the CodePudding user response:
refer to fifth floor response: VB amateurs MSDN Library: Shift parameter is when the incident response shift, CTRL and ALT key state of an integer, Shift parameter is a domain, it USES the least bit response shift key (0), CTRL key (1) and (2) the ALT key, these correspond to the value of 1, 2 and 4, can be based on some, all or nothing Settings to point to have some, all or zero key is pressed, Which means that when you press the other keys, have at the same time press the SHIFT, CTRL and ALT keys Shift=1 said the shift key was pressed Shift=2 indicates that the CTRL key is press the Shift=4 indicates that the ALT key is press the Shift=3 means the shift key and the CTRL key and press the Shift=5 said the shift key and the ALT key and press the Shift=6 said CTRL and ALT keys and press the Shift=7, said the shift key, CTRL and ALT keys and press the Ok, what about keycode CodePudding user response:
Suggest that the original poster Ann a MSDN, these can check on their own things, do not have to ask here, Keycode constant Can be anywhere in the code with the following instead of the actual value of constant: Constant value description VbKeyLButton 0 x1 of mouse VbKeyRButton 0 x2 the right-click VbKeyCancel 0 x3 CANCEL button VbKeyMButton 0 x4 middle mouse button VbKeyBack 0 by 8 BACKSPACE key VbKeyTab 0 x9 TAB VbKeyClear 0 xc CLEAR key VbKeyReturn 0 xd ENTER VbKeyShift 0 x10 SHIFT key VbKeyControl 0 x11 CTRL key VbKeyMenu 0 x12 MENU button VbKeyPause 0 x13 PAUSE key VbKeyCapital 0 x14 CAPSLOCK key VbKeyEscape 0 x1b ESC VbKeySpace 0 x20 SPACEBAR key VbKeyPageUp 0 x21 PAGEUP key VbKeyPageDown 0 x22 PAGEDOWN key VbKeyEnd 0 x23 END keys VbKeyHome 0 x24 HOME button VbKeyLeft 0 x25 LEFTARROW keys VbKeyUp 0 x26 UPARROW keys VbKeyRight 0 x27 RIGHTARROW keys VbKeyDown 0 x28 DOWNARROW keys X29 vbKeySelect 0 SELECT key VbKeyPrint 0 x2a PRINTSCREEN key VbKeyExecute 0 x2b EXECUTE key VbKeySnapshot 0 x2c SNAPSHOT button VbKeyInsert 0 x2d INSERT key VbKeyDelete 0 x2e DELETE key VbKeyHelp 0 x2f HELP key VbKeyNumlock 0 x90 NUMLOCK key A to Z key and A - Z letter ASCII: Constant value description VbKeyA 65 A key VbKeyB 66 B keys VbKeyC 67 C key VbKeyD 68 D keys VbKeyE 69 E key VbKeyF 70 F key VbKeyG 71 G VbKeyH 72 H key 73 I key vbKeyI 74 J vbKeyJ VbKeyK 75 K key VbKeyL 76 L keys VbKeyM 77 M VbKeyN 78 N key VbKeyO 79 O key Key vbKeyP 80 P VbKeyQ 81 Q keys VbKeyR 82 R VbKeyS 83 S VbKeyT 84 T VbKeyU 85 U key VbKeyV 86 V VbKeyW 87 W keys VbKeyX 88 X key VbKeyY 89 Y VbKeyZ 90 Z key 0 to 9 key is the same as the Numbers 0-9 ASCII: Constant value description VbKey0 48 0 keys VbKey1 49 1 VbKey2 50 2 keys VbKey3 51 3 keys VbKey4 52 4 keys VbKey5 53 5 keys VbKey6 54 6 key VbKey7 55 7 keys VbKey8 56 8 key VbKey9 57 9 key Constant of the following represent Numbers on the keyboard button: Constant value description VbKeyNumpad0 0 x60 0 keys X61 vbKeyNumpad1 0 1 VbKeyNumpad2 0 x62 2 keys VbKeyNumpad3 0 x63 3 keys VbKeyNumpad4 0 x64 4 keys VbKeyNumpad5 0 x65 5 keys VbKeyNumpad6 0 x66 6 key VbKeyNumpad7 0 x67 7 keys VbKeyNumpad8 x68 8 0 keys VbKeyNumpad9 0 x69 9 key VbKeyMultiply 0 x6a MULTIPLICATION SIGN (*) keys VbKeyAdd 0 x6b PLUS SIGN (+) key VbKeySeparator 0 x6c ENTER VbKeySubtract 0 x6d MINUS SIGN (-) keys VbKeyDecimal 0 x6e DECIMAL POINT (.) key VbKeyDivide 0 x6f DIVISION SIGN (/) key On behalf of the following constant function keys: Constant value description VbKeyF1 0 x70 F1 key VbKeyF2 0 x71 F2 VbKeyF3 0 x72 F3 key VbKeyF4 0 x73 F4 keys VbKeyF5 0 x74 F5 VbKeyF6 0 x75 F6 key VbKeyF7 0 x76 F7 key VbKeyF8 0 x77 F8 key VbKeyF9 0 x78 F9 key nullnullnullnullnullnullnull