|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
to get Keychar values from keydataand - keys. The KeyPress event doesn't suit because I want to have an effet when the key is down and when the key is up. So, I handle the KeyDown and KeyUp events, but I received KeyCode and not the translated character. If the + or - on the numpad is pressed, I receive KeyCode = Add / Subtract If the + or - on the main keyboard is pressed, I received (first for + , the shift KeyCode) and then OemPlus, OemMinus. I do not want to use a trick like memorize that the shift key is pressed before the plus key is pressed because if the keyboard is configured differently, it may be not working. Who know how to convert the KeyCode / KeyData provided by the KeyEventArgs into a character ? Hello manini,
>Who know how to convert the KeyCode / KeyData provided by the I don't understand what you want to convert - simply check for any of the >KeyEventArgs >into a character ? values that could signal a + (for instance). They keyboard driver installed on your users' systems makes sure that you get one of these values. What is there to convert? Oliver Sturm |
|||||||||||||||||||||||