Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In Windows, you use SetConsoleCtrlHandler to trap Ctrl+C.
Comments
- Anonymous
June 15, 2005
And in .NET Framework V2 you can use:
Console.TreatControlCAsInput = false;
Then use:
Console.CancelKeyPress += new
ConsoleCancelEventHandler(myHandler);
with your own handler. - Anonymous
August 29, 2006