Skip to content

Control.OnKeyPress

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

Control.OnKeyPress Event

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

Definition

Namespace: My.Sys.Forms

Syntax

OnKeyPress As Sub(ByRef Designer As My.Sys.Object, ByRef Sender As Control, Key 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

See also

Clone this wiki locally