When handling Control.OnKeyPress
event, there is a KeyPressEventArgs
that contains a KeyChar
.
For usability reasons I need exactly the same KeyChar
but when handling OnKeyDown
event.
The KeyEventArgs
does not contains any char related data. I mean, if press the A
key with or without Shift
its not affecting the KeyCode
, KeyData
or KeyValue
. The same when using another language, i still getting capital english values.
How to get a KeyPressEventArgs.KeyChar
inside KeyDown
event?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…