Visual C# - How to Capture keypress for Enter, Up, Down, Left, Right
Posted on 2008-10-29
This is driving me nutz!
I am converting one of my VB6 apps to C# (I'm pretty new to c#). I currently have this working great in VB6, but I can't seem to find how to do it in c#, I've searched the net and my 8 c# books for hours and can't figure out how to get the job done.
Here is what I need:
I need to be able to capture keyboard events for the Up, Down, Left, & Right arrows along with the enter key in my c# application.
I would like to be able to turn the key capture on and off.
What this app is, is a troubleshooter of sorts, where I need the ability to test for up, down, left, right, and enter, but that is only a part of the test. After the results are in from that, I don't want it to keep detecting those motions.
I would REALLY appreciate some help here guys.