Skip to main content
Version: 4.1

KeyPressEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Provides data for the KeyPress event.

public class KeyPressEventArgs : EventArgs

Constructors​

Instance member KeyPressEventArgs(keyChar)​

Initializes a new instance of the KeyPressEventArgs class.

NameTypeDescription
keyCharCharThe ASCII character corresponding to the key the user pressed.

Properties​

Instance member Handled​

Boolean: Returns or sets whether the KeyPress event was handled.

Value: true if the event is handled; otherwise, false.

Instance member KeyChar​

Char: Returns or sets the character corresponding to the key pressed.

Value: The ASCII character that is composed. For example, if the user presses SHIFT + K, this property returns an uppercase K.

Used By​

NameDescription
KeyPressEventHandlerRepresents the method that will handle the KeyPress event of a Control.