Categories
How to disable Ctrl+C, Alt F4 and other CONSOLE close buttons?
C# console There are many solutions for FORMS on the Internet, I have not seen it for the console
Answer the question
In order to leave comments, you need to log in
Console.CancelKeyPress += (sender, args) => { args.Cancel = true; };
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question