K
Keith Smith
How can I get the character value of a KeyPress?
I tried this...
MessageBox.Show(e.KeyChar.ToString());
....but it only gives me the actual character itself. For example, if the
user presses "Enter" I need the value of 13 returned to me. Keep in mind
that this is a KeyPress and not a KeyUp or KeyDown which utilize KeyValue
for this.
Thanks!
I tried this...
MessageBox.Show(e.KeyChar.ToString());
....but it only gives me the actual character itself. For example, if the
user presses "Enter" I need the value of 13 returned to me. Keep in mind
that this is a KeyPress and not a KeyUp or KeyDown which utilize KeyValue
for this.
Thanks!