ListBox.KeyDown

Syntax

ControlName_KeyDown( keyCode, shift)

Applies To

ListBox

Purpose

Occurs when the user presses a key while the control has the input focus. This event occurs before the ListBox.KeyPress event.

Parameters

keyCode As Integer

[In/Out] Specifies the KeyCodes constant of the key the user pressed.

shift As Integer

[In] Specifies a combination of the KeyModifiers constants that specifies the state of the <Shift>, <Ctrl>, and <Alt> keys.

See Also

KeyCodes

KeyModifiers

ListBox.KeyPress

ListBox.KeyUp