Disable Ctrl-Alt-Del from a form
Posted on 2002-06-28
I have one form in my app that I want to completely lock the end-user from exiting except by one command button. I have disabled other controls and set the ControlBox property of the form to False. I have set the BorderStyle to Fixed Single. At this point, the only way they can exit the form is through Ctrl-Alt-Del. I tried to cancel the Keycode value in the KeyDown event of the form when Shift = 6 (Ctrl+ALT) but I still brought up TaskManager when I hit the Del key. I'm hesitant to modify Registry settings because if the computer goes down then an NT/2000 machine might never allow a log-on (requires Ctrl-Alt-Del). If anybody has an idea I'd be greatly appreciative! Thanks for your thoughts!