Console keypress

  • Thread starter Thread starter Salvatore Di Fazio
  • Start date Start date
Hi,

You have to use Console.Read , there is nothing like an event in a console
as you do not have a message pump.


cheers,
 
Ignacio said:
You have to use Console.Read , there is nothing like an event in a console
as you do not have a message pump.

Console.Read requires you to type a line and press ENTER. It does not
get the characters as you type them.

New in .Net 2.0 is the ReadKey method and the KeyAvailable property.
 
Back
Top