HeaderPane
Main
Hide
Share Link
Print

KeyPress Event, SftDate Object

A character key is pressed.

Syntax

C#void object_KeyPressEvent(object sender, AxSftDateLib20._ISftDateEvents_KeyPressEvent e);
VB.NETPrivate Sub object_KeyPressEvent(ByVal sender As Object, ByVal e As AxSftDateLib20._ISftDateEvents_KeyPressEvent) Handles object.KeyPressEvent
C++void OnKeyPressobject(short* KeyAscii);
CHRESULT OnKeyPressobject(short* KeyAscii);

object

A SftDate object.

KeyAscii

The character typed. Setting it to 0 suppresses the character; setting it to another character replaces it.

Comments

The KeyPress event occurs when the user types a character while the control has the input focus. p Characters typed into the text box of a date field control's free-form editing (EditStyle) don't raise the KeyPress event; the KeyDown event occurs for their keys. p Use the KeyDown and KeyUp events to handle keys that don't produce characters, such as function keys and navigation keys.

See Also SftDate Object | Object Hierarchy | Keyboard Interface


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.