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

Clearcase check in/uncheck out all the checked out files script

MSSQL GROUP_CONCAT

Duplicating a local copy of project from TFS and making web software client factory to work