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.

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

MSSQL GROUP_CONCAT