Is it possible to get the character if “Shift” was Pressed, that is, if I press “1” I get the “1” character, but if I hold down “Shift” it becomes “!” – all without the quotes of course. How do I do something like this programatically?
There was a method where you could just add to the ASCII code. However, this option is not suitable as it won’t work in every locale.
Is there an option which will work in .NET, and possibly in Silverlight, where I can pass in a character like “9” and get the result “(“?
Programmatically pressing “Shift” will not work in this case nor will any SendKeys based solution due to platform limitations.
This would be for a virtual keyboard, like the on-screen keyboard in Silverlight.
Couldn’t you just spend a few minutes making a mapping table of your own?