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. how can i disable CTRL+ALT+DEL,ALT+F4 and ALT+TAb keys

how can i disable CTRL+ALT+DEL,ALT+F4 and ALT+TAb keys

Scheduled Pinned Locked Moved C#
csharpquestion
4 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.
  • F Offline
    F Offline
    fgfdhghgfd
    wrote on last edited by
    #1

    hi everybody, i want to disable CTRL+ALT+DEL,ALT+F4 and ALT+TAb keys through c# program how can i achieve it.please send some clue if possible please send some sample code.

    J V A 3 Replies Last reply
    0
    • F fgfdhghgfd

      hi everybody, i want to disable CTRL+ALT+DEL,ALT+F4 and ALT+TAb keys through c# program how can i achieve it.please send some clue if possible please send some sample code.

      J Offline
      J Offline
      Jon Hulatt
      wrote on last edited by
      #2

      You cannot disable Ctrl-Alt-Delete.

      using System.Beer;

      1 Reply Last reply
      0
      • F fgfdhghgfd

        hi everybody, i want to disable CTRL+ALT+DEL,ALT+F4 and ALT+TAb keys through c# program how can i achieve it.please send some clue if possible please send some sample code.

        V Offline
        V Offline
        Vega02
        wrote on last edited by
        #3

        As Jon said, Windows will not allow you to disable CTRL-ALT-DEL. This is because this particular shortcut is used to signal to the Windows OS that you want to perform some critical action - log off, terminate a program, etc. In fact, in some Windows setups, you are required to press CTRL-ALT-DEL before you login to the system. This is so that you know that you're typing your username and password into a real Windows OS login dialog - not some spoofer. That said, it sounds like you might be trying to write a screensaver program. Don't worry about those key combinations. Just write your program as a normal .EXE file, then when it is compiled change the file extension to .SCR. Then right-click on the file from Explorer and hit Install. You'll now be able to use this as a screensaver, and Windows should take care of those pesky key combinations for you automatically.

        1 Reply Last reply
        0
        • F fgfdhghgfd

          hi everybody, i want to disable CTRL+ALT+DEL,ALT+F4 and ALT+TAb keys through c# program how can i achieve it.please send some clue if possible please send some sample code.

          A Offline
          A Offline
          AFSEKI
          wrote on last edited by
          #4

          Use keyboard hooking to do whatever you want. This way, you can hook all the key events in windows for all windows and cancel the ones you don't want to be processed by "your Window". this topic is not a small one and requires experience. Please checkout google for more information and source code examples.

          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