Skip to main content

KeyboardHandlerServiceWrapper.OnKeyPress(PortableKeyPressEventArgs) Method

Override this method to handle the KeyPress event.

Namespace: DevExpress.Services

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data


public virtual void OnKeyPress(
    PortableKeyPressEventArgs e


Name Type Description
e DevExpress.Portable.Input.PortableKeyPressEventArgs

This class is equivalent to System.Windows.Forms.KeyPressEventArgs and specifies the ASCII character corresponding to the key a user pressed.


The KeyPress event occurs when a character, space or backspace key is pressed while the control is focused. The KeyDown event precedes the KeyPress event, and the KeyUp event occurs when a user releases the key.

See Also