Ed Z

Ed Z

  • NA
  • 4
  • 0

How to force an "Enter" command in an options menu?

May 13 2008 11:45 AM

Hi,

Can someone point out which .NET method or how to code a solution to force an "Enter" command in an options menu?

i.e. if I have the following line:

System.Console.Write("Would you like to continue [Y/N]?: ");

When the user presses "Y" or "N", how can I force the program to acknowledge the answer immediately without the user having to press the Enter key? or continue execution for that method...


Answers (1)