CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 1999
    Location
    OHIO
    Posts
    12

    disabling ctrl+alt+delete

    Anyone know how to disable the ctrl+alt+delete keystroke in a visual basic program? Would be a big help - thanks
    Best Regards


  2. #2
    Join Date
    Sep 1999
    Location
    Germany
    Posts
    66

    Re: disabling ctrl+alt+delete

    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/

  3. #3
    Join Date
    Jul 1999
    Location
    OHIO
    Posts
    12

    Re: disabling ctrl+alt+delete

    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?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured