Button.KeyDown

Syntax

ControlName_KeyDown( keyCode, shift)

Applies To

Button

Purpose

Occurs when the user presses a key while the control has the input focus. This event occurs before the Button.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

Button.KeyPress

Button.KeyUp

KeyCodes

KeyModifiers