If I intercept a key press using win32 calls, I now have a key code. Is there a way to convert that to a System.Windows.Forms.Keys value?
Is there a 2.0 equilavent?
Jeremy
2009-02-16 18:27:45
If the int and char keycode are interchangeable then this previous solution should work: <a href="http://stackoverflow.com/questions/544141/how-to-convert-a-character-in-to-equivalent-system-windows-input-key-enum-value/544245#544245">link</a>
xcud
2009-02-16 20:59:45
+1
A:
The integer values for System.Windows.Forms.Keys enum match that of the Win32 calls.
Keys keyData = (Keys)rawWin32KeyCode;
Adam L
2009-02-16 18:38:34