character to the corresponding virtual-key code in c#

Posted by kambamsu on Stack Overflow See other posts from Stack Overflow or by kambamsu
Published on 2010-05-29T09:51:36Z Indexed on 2010/05/29 10:02 UTC
Read the original article Hit count: 507

Filed under:
|
|
|

Hi,

Currently, i'm using the method "VkKeyScan" in the win32 api to convert a character to its virtual keycode. But the problem that this seems to have is that, when i pass small alphabets, it works fine whereas when i pass in a capital alphabet, it doesnt return the appropriate keycode and similarly with special characters like "(" or "}" .. How do i do this? Is there anyway for me to directly convert a string to its virtual equivalent without considering whether it contains capitalized or special characters?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about virtual