SDG Toolkit

SdgKeyPressEventArgs.KeyChar Property

Gets the ASCII equivalent of the character just pressed

public char KeyChar {get; set;}

Remarks

Some keys such as f1 do not have ascii equivalents. These keys will return null as the KeyChar value. The Ascii Character takes into account the use of the shift key and ignores the control and alt keys.

Example

C# Eg., if ('a' == e.KeyChar) {}

See Also

SdgKeyPressEventArgs Class | Sdgt Namespace