M
michelQA
Hi,
I need to catch keyboard input in several net control.
With KeyUp, KeyDown and KeyPress managing combined keys (like Ctrl-,C
Ctrl-Alt-Ins or Shift-End) seems to be a real pain since keys like
Shift+End are not "Real" keys for keypress.
When using keyUp/KeyDown I dont understand why e.KeyCode, e.KeyValue
return letters in uppercase and I dont found any way to represents
keys in a more readable way like "<Ctrl+C>" instead of "ControlKey"
and "C" Is there any kind of converter for e.KeyCode, e.KeyValue and
e.KeyChar
I was surprised to see that there is no examples of using theses
events for properly catch any keys and key combinaison and represents
it in a fancy way like a native HotKey control.
After experiencing diffrent way to track keyboard input i'm still
trying to figure out what is the proper way to do this. I my latest
try, I use keyup/keydown to catch "Modifier" and use keypress to
display the result but it still not working properly for key Like
(Shift-End,Arrows, etc..)
Is anybody can guide me to the proper "Clean" way to achieve this
since i'm restarting everyting from scratch and currently investigate
native way to do the same thing (maybe an example could be found),
subclassing WndProc and learn about overiding ProcessCmdKey. Any
advises or even better, an example (managed or not) will be really
appreciated.
Thanks,
Michel
I need to catch keyboard input in several net control.
With KeyUp, KeyDown and KeyPress managing combined keys (like Ctrl-,C
Ctrl-Alt-Ins or Shift-End) seems to be a real pain since keys like
Shift+End are not "Real" keys for keypress.
When using keyUp/KeyDown I dont understand why e.KeyCode, e.KeyValue
return letters in uppercase and I dont found any way to represents
keys in a more readable way like "<Ctrl+C>" instead of "ControlKey"
and "C" Is there any kind of converter for e.KeyCode, e.KeyValue and
e.KeyChar
I was surprised to see that there is no examples of using theses
events for properly catch any keys and key combinaison and represents
it in a fancy way like a native HotKey control.
After experiencing diffrent way to track keyboard input i'm still
trying to figure out what is the proper way to do this. I my latest
try, I use keyup/keydown to catch "Modifier" and use keypress to
display the result but it still not working properly for key Like
(Shift-End,Arrows, etc..)
Is anybody can guide me to the proper "Clean" way to achieve this
since i'm restarting everyting from scratch and currently investigate
native way to do the same thing (maybe an example could be found),
subclassing WndProc and learn about overiding ProcessCmdKey. Any
advises or even better, an example (managed or not) will be really
appreciated.
Thanks,
Michel