KeyPress Event

Occurs when the user presses and releases an ANSI key in the grid.


Syntax

Private Sub object_KeyPress(KeyAscii As Integer)

The syntax of the KeyPress event has these parts:

PartDescription
objectA DGrid 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