Brian,
In .NET 2.0., the Console class has a static ReadKey method which you
can use to read a key from the console.
In .NET 1.1, you could probably call the ReadConsoleInput API function
through the P/Invoke layer to get a similar effect.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Brian Schwartz" <br***@fishnetcomponentswos.com> wrote in message
news:eH*************@TK2MSFTNGP15.phx.gbl...
I'm writing a console application. Both Read and ReadLine wait for enter
to
be pressed before returning. Isn't there a way to read a single character
and continue immediately, without waiting for enter?
--
Brian Schwartz
FishNet Components
http://www.fishnetcomponents.com
Try the best free grid available anywhere - no strings attached!