Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. disabling hotkeys

disabling hotkeys

Scheduled Pinned Locked Moved C#
csharptutorial
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tahir_makhdoom
    wrote on last edited by
    #1

    i want to disable hotkeys like ctrl ,alt, delete while my application is running and enable when application is closed. i want code in c#. Any one can guide me.

    tahir

    G R D 3 Replies Last reply
    0
    • T tahir_makhdoom

      i want to disable hotkeys like ctrl ,alt, delete while my application is running and enable when application is closed. i want code in c#. Any one can guide me.

      tahir

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      Do you want to disable them only for your application or for whole system? If you want to do it for the whole system, then I guess you will need to install global mouse keyboard hook. There are several good articles on codeproject that describe how to do that. -- modified at 6:15 Wednesday 5th September, 2007

      #region signature my articles #endregion

      R 1 Reply Last reply
      0
      • G Giorgi Dalakishvili

        Do you want to disable them only for your application or for whole system? If you want to do it for the whole system, then I guess you will need to install global mouse keyboard hook. There are several good articles on codeproject that describe how to do that. -- modified at 6:15 Wednesday 5th September, 2007

        #region signature my articles #endregion

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #3

        Giorgi Dalakishvili wrote:

        I guess you will need to install global mouse hook.

        Why would you suggest a mouse hook? The OP wants to deal with key strokes. :rolleyes:


        Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.

        G 1 Reply Last reply
        0
        • R Rajesh R Subramanian

          Giorgi Dalakishvili wrote:

          I guess you will need to install global mouse hook.

          Why would you suggest a mouse hook? The OP wants to deal with key strokes. :rolleyes:


          Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.

          G Offline
          G Offline
          Giorgi Dalakishvili
          wrote on last edited by
          #4

          Stupid mistake. It must be keyboard hook. Thanks for pointing it out.

          #region signature my articles #endregion

          1 Reply Last reply
          0
          • T tahir_makhdoom

            i want to disable hotkeys like ctrl ,alt, delete while my application is running and enable when application is closed. i want code in c#. Any one can guide me.

            tahir

            R Offline
            R Offline
            Rajesh R Subramanian
            wrote on last edited by
            #5

            You will need to install a keyboard hook for this. Start with that and ask further questions while you run into trouble.


            Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.

            1 Reply Last reply
            0
            • T tahir_makhdoom

              i want to disable hotkeys like ctrl ,alt, delete while my application is running and enable when application is closed. i want code in c#. Any one can guide me.

              tahir

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              You can't disable Ctrl-Alt-Delete. That key combination is handled at the kernel level, before your app, or any keyboard hooks, get a chance to see it and quash it.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups