469,326 Members | 1,548 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,326 developers. It's quick & easy.

How to convert KeyEventArgs.KeyCode to what the keyboard is mapped to

AdrianH
1,251 Expert 1GB
On a KeyDown event, I need to determine what the intended character was to be placed. How does one do this? It is driving me crazy as I do not want to use shift to determine how to map the numbers/symbols since this can change from language to language, keyboard to keyboard. There MUST be some function in Windoze .NET library to do this as to not have such a function would be ludicrous.

Anyone know what function is needed?

Thanks,


A
Dec 3 '10 #1
1 2035
AdrianH
1,251 Expert 1GB
Answer is to use the KeyPress not the KeyUp or KeyDown event. KeyPress will give out the key that was pressed including if a deadkey is used (used to add accents to letters).


A
Dec 13 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by lawrence | last post: by
2 posts views Thread by Santy | last post: by
1 post views Thread by Chaoxiang | last post: by
reply views Thread by Nuno | last post: by
2 posts views Thread by Chris Davoli | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.