1
Answer

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

Ed Z

Ed Z

16y
1.9k
1

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)