Posts

Showing posts from August, 2007

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();