Help Center

KeyDownfunction

Occurs when the user presses a key while the grid has the focus.

Windowsfunctiondoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION KeyDown (BYVAL keyCode AS SHORT PTR, BYVAL iShift AS SHORT) AS HRESULT

Parameters

NameDescription
keyCodeAn integer that represents the key code of the key that was pressed.
iShiftThe state of SHIFT, CTRL, and ALT.

Description

Occurs when the user presses a key while the grid has the focus. It is primarily used to detect special key presses, such as function keys (F1-F12), navigation keys (HOME, END, PAGEUP), or key combinations with CTRL/ALT/SHIFT.

Reference