Get 'Shift' representation of a key in windows
问题 Is there a built in way to obtain the equivalent of a key combined with the Shift key e.g: a + Shift -> A 1 + Shift -> ! I currently have all the keys mapped in a dictionary in pretty much the same way as illustrated above. I'm using windows forms. 回答1: You can achieve what you want by first calling vkKeyScan to get the virtual-keycode for the char you're interested in. With the outcome of that call you can feed ToUnicode to translate what the characters would be when the Shift key is pressed