OnKeyDown

Top  Previous  Next

 

OnKeyDown (Event)

 

Occurs when the user presses a key from the keyboard when AVAX has the focus

 

Syntax:

Private Sub object_OnKeyDown(Sender As System.Object, e As KeyDownEventArgs)

 

The OnKeyDown event syntax has the following parts:

Argument

Data Type

Description

Sender

System.Object

Is the object that raises the event

e.KeyCode

Short

Is the key code

e.Shift

Short

Returns an integer that corresponds to the state of the SHIFT, CTRL, and ALT keys when the button specified in the button argument is pressed or released

 

Example