KeyPress Event
Fired when a user presses a key.
Syntax
Private Sub object_KeyPress(KeyAscii As Integer)
The syntax of the KeyPress event has these parts:
| Part | Description |
| object | A DCombo control. |
| KeyCode | An integer that returns a standard numeric ANSI keycode. KeyAscii is passed by reference; changing it sends a different character to the object. Changing KeyAscii to 0 cancels the keystroke so the object receives no character. |
Data Type
Integer