I need example source code preferably in VB.NET, but I will accept C#
or even C++ as long as I can reference the method from VB.NET.
I need the code example to show me how to trap for the arrow keys in a
.NET console app. This last part is very important, it has to be for a
CONSOLE app, not a Windows Forms app.
I've done some research, and the existing console methods require an
enter keypress, which won't do what I need. I've also tried ConsoleEx
from GotDotNet, but it doesn't catch arrow keys either.
The proper solution will most likely involve setting the console mode
to character mode and making some API calls. But I need code. I would
strongly prefer it to be VB.NET, but I can use C# as well. |