Skip to content

Control.OnKeyDown

Xusinboy Bekchanov edited this page Nov 5, 2023 · 3 revisions

Control.OnKeyDown Event

Occurs when a key is pressed while the control has focus (Windows, Linux).

Definition

Namespace: My.Sys.Forms

Syntax

OnKeyDown As Sub(ByRef Designer As My.Sys.Object, ByRef Sender As Control, Key As Integer, Shift As Integer)

Parameters

Part Type Description
Designer My.Sys.Object The designer of the object that received the signal. When an object is created without a designer, the designer will be empty. This can be checked with the command: Designer.IsEmpty()
Sender Control The object which received the signal
Key Integer
Shift Integer

See also

Clone this wiki locally