Press anykey to continue

Taken from http://www.codeproject.com/useritems/PressAnyKeyToContinue.asp



private void FlushConsole()
{
while( Console.In.Peek() != -1 )
{
Console.In.Read();
}
}

Console.WriteLine("Press any key to continue...");
FlushConsole();
Console.Read();

Comments

Popular posts from this blog

Outlook : "operation failed, object could not be found. " when trying to close a PST.

How to transfer app and data from old iPhone to new iPhone for model IOS17 and IOS18 above.

Troubleshooting Outlook Express (IMAP, POP3, HTTP, NEWS) with the log file