Disable Ctl+Alt+Del; Ctrl+Esc; Ctrl+tab, Alt+Tab, Start button, ctrl+Alt+Del

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thupham
    New Member
    • Oct 2007
    • 28

    Disable Ctl+Alt+Del; Ctrl+Esc; Ctrl+tab, Alt+Tab, Start button, ctrl+Alt+Del

    Dear all friend,
    I want disable Ctl+Alt+Del; Ctrl+Esc; Ctrl+tab, Alt+Tab, Start button, ctrl+Alt+Del, lock all keys on the keyboard. Have you ever do it in C#.
    Help me.
    Thanks for all reply.
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    Originally posted by thupham
    Dear all friend,
    I want disable Ctl+Alt+Del; Ctrl+Esc; Ctrl+tab, Alt+Tab, Start button, ctrl+Alt+Del, lock all keys on the keyboard. Have you ever do it in C#.
    Help me.
    Thanks for all reply.
    on the keydown event
    do something like
    [CODE=cpp]private void frmWorkshopJobs _KeyDown(object sender, KeyEventArgs e)
    {
    if (e.Control == true)
    {
    if (e.KeyData == Keys.Escape)
    e.Handled = true;
    }
    }[/CODE]
    do that for each scenario you want to cover.
    however certain keystrokes which are handled by the OS even before you cannot be stopped (like ctrl + Alt + del, windows button, etc)

    cheers

    Comment

    • mzmishra
      Recognized Expert Contributor
      • Aug 2007
      • 390

      #3
      This article can help you also
      http://forums.microsof t.com/MSDN/ShowPost.aspx?P ostID=2143470&S iteID=1

      Comment

      • thupham
        New Member
        • Oct 2007
        • 28

        #4
        I have just used the link http://forums.microsof t.com/MSDN/ShowPost.aspx?P ostID=2143470&S iteID=1,
        it 's very helpful, but that example can't disable Ctrl+Alt+Del; Alt+tab; and Alt+Esc.
        I'm researching this. If you know more, please show me.
        Thanks.

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          Ctrl+alt+del is supposed to be hardware level (supposed to be...) and isn't supposed to be able to be trapped.
          However, there is somewhere where you can "replace" the taskmanager with something else (possibly even nothing?). How I dunno, but I've seen it done.

          Comment

          • thupham
            New Member
            • Oct 2007
            • 28

            #6
            How to disable Ctrl+Alt+Del, Alt+tab, Alt+Esc

            Can you help me to disable Ctrl+Alt+Del, Alt+tab, Alt+Esc by C#.
            Thanks

            Comment

            • Shashi Sadasivan
              Recognized Expert Top Contributor
              • Aug 2007
              • 1435

              #7
              Originally posted by thupham
              Can you help me to disable Ctrl+Alt+Del, Alt+tab, Alt+Esc by C#.
              Thanks
              hi thupham
              Please do not double post.
              I think your question was answered, but you did not respond to your post

              Comment

              • Shashi Sadasivan
                Recognized Expert Top Contributor
                • Aug 2007
                • 1435

                #8
                Originally posted by Plater
                Ctrl+alt+del is supposed to be hardware level (supposed to be...) and isn't supposed to be able to be trapped.
                However, there is somewhere where you can "replace" the taskmanager with something else (possibly even nothing?). How I dunno, but I've seen it done.
                This thread does talk about that, along with 2 other options

                Comment

                • thupham
                  New Member
                  • Oct 2007
                  • 28

                  #9
                  I'm waiting for new reply, but no one answer me how to disable Ctrl+Esc; Alt+Esc; Alt+Tab by C#, and may be I have a mistake on posting, so it have double.
                  Very Sorry.
                  Last edited by thupham; Nov 16 '07, 07:53 AM. Reason: sorry

                  Comment

                  • CyberSoftHari
                    Recognized Expert Contributor
                    • Sep 2007
                    • 488

                    #10
                    The link you given is pretty good.
                    You cannot get the exact answer. Just try you can do with that code.

                    Or you can get a C++ Dll to do all this things.
                    Last edited by CyberSoftHari; Nov 16 '07, 09:17 AM. Reason: Removed Code

                    Comment

                    • thupham
                      New Member
                      • Oct 2007
                      • 28

                      #11
                      But in that links, I just combine 2 keys, for example Ctrl+Tab, I can combine 3 keys(Ctrl+Alt+D el), I tried but can't do. Help me please.
                      Thanks

                      Comment

                      Working...