Anyone know how to disable the ctrl+alt+delete keystroke in a visual basic program? Would be a big help - thanks
Best Regards
Printable View
Anyone know how to disable the ctrl+alt+delete keystroke in a visual basic program? Would be a big help - thanks
Best Regards
Try it:
Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
Private Sub Form_Unload(Cancel As Integer)
Call RegisterServiceProcess(0&, 0&)
End Sub
Private Sub Form_Load()
Call RegisterServiceProcess(0&, 1)
End Sub
Best Regards.
[email protected]
http://vbcode.webhostme.com/
I've given it a try, but I have a question. This seems keep the program from being listed in the Close Program dialog box that results from ctrl+alt+del (is that right?). I was wondering if there was a way to disable the keystroke so that pressing it didn't bring up the Close Program dialog at all. Help?