Description: | Generated when a key is released and passed to the control that has the focus. The KeyPress and KeyUp events are usually generated after the KeyDown event. If a key is pressed and kept depressed, multiple KeyDown and KeyPress events are generated before a KeyUp event. Note that if you pressed a toggle key (e.g. Caps Lock, Num Lock): The order of events may be changed. One of these events may not be generated. To support special keystrokes, such as short-cuts, on the form, see the PreKeyPress event. | ||||
TreeView and | KeyDown events are not generated when a label is being edited. | ||||
Others | Event is not generated in the following cases:
| ||||
Used in controls: | CheckBox ComboBox CommandButton DriveList | Edit FileList FolderList ListBox | ListView OptionButton ScrollBar Slider | Tab Table TextBox TreeView | |
Used in objects: | Form | ||||
Parameters: | 1. [VT_I4 - Index S9(9) COMP-5] 2. VT_I2 - KeyCode S9(4) COMP-5 3. VT_I2 - ShiftState S9(4) COMP-5 | ||||
Description of parameters (with constants): |
|