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. Locking windows desktop

Locking windows desktop

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
8 Posts 5 Posters 1 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.
  • M Offline
    M Offline
    motojojo
    wrote on last edited by
    #1

    Hi, I wonder how to lock up the windows desktop in C#, meaning that the user can't do anything, just sees a form... I've been thinking about using a form with maximized window state and topmost = true, but then I still need to disable the ALT + TAB shortcut somehow... Does anyone have any suggestions? Your help is greatly appreciated :) - a young C# programmer

    C V M 3 Replies Last reply
    0
    • M motojojo

      Hi, I wonder how to lock up the windows desktop in C#, meaning that the user can't do anything, just sees a form... I've been thinking about using a form with maximized window state and topmost = true, but then I still need to disable the ALT + TAB shortcut somehow... Does anyone have any suggestions? Your help is greatly appreciated :) - a young C# programmer

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Why would you want to do this ? One way would be to put a window over the desktop, which is transparent, and doesn't appear in the taskbar.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      M 1 Reply Last reply
      0
      • C Christian Graus

        Why would you want to do this ? One way would be to put a window over the desktop, which is transparent, and doesn't appear in the taskbar.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        M Offline
        M Offline
        motojojo
        wrote on last edited by
        #3

        I'm working on a project in school to lock public computers and to regain access with a PIN code.. Yes, I've thought of that myself but this can be ignored by switching to another app with CONTROL - TAB, no? Regards :)

        N K C 3 Replies Last reply
        0
        • M motojojo

          I'm working on a project in school to lock public computers and to regain access with a PIN code.. Yes, I've thought of that myself but this can be ignored by switching to another app with CONTROL - TAB, no? Regards :)

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          If the window were set to always on top it wouldn't matter if they used alt-tab. Although the most secure way (relatively speaking) would be to logout.


          only two letters away from being an asset

          1 Reply Last reply
          0
          • M motojojo

            I'm working on a project in school to lock public computers and to regain access with a PIN code.. Yes, I've thought of that myself but this can be ignored by switching to another app with CONTROL - TAB, no? Regards :)

            K Offline
            K Offline
            KaineDunno
            wrote on last edited by
            #5

            just catch the keydown events greetings

            1 Reply Last reply
            0
            • M motojojo

              I'm working on a project in school to lock public computers and to regain access with a PIN code.. Yes, I've thought of that myself but this can be ignored by switching to another app with CONTROL - TAB, no? Regards :)

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              You can catch an event when your form loses focus, and bring it back to the front. But, yes, logging out is the best way to do it, Windows is already built around that.

              Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

              1 Reply Last reply
              0
              • M motojojo

                Hi, I wonder how to lock up the windows desktop in C#, meaning that the user can't do anything, just sees a form... I've been thinking about using a form with maximized window state and topmost = true, but then I still need to disable the ALT + TAB shortcut somehow... Does anyone have any suggestions? Your help is greatly appreciated :) - a young C# programmer

                V Offline
                V Offline
                Vasudevan Deepak Kumar
                wrote on last edited by
                #7

                http://www.wwwcoder.com/Default.aspx?tabid=283&EntryID=763[^]

                Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                1 Reply Last reply
                0
                • M motojojo

                  Hi, I wonder how to lock up the windows desktop in C#, meaning that the user can't do anything, just sees a form... I've been thinking about using a form with maximized window state and topmost = true, but then I still need to disable the ALT + TAB shortcut somehow... Does anyone have any suggestions? Your help is greatly appreciated :) - a young C# programmer

                  M Offline
                  M Offline
                  motojojo
                  wrote on last edited by
                  #8

                  Thank you guys for your input :) I greatly appreciate it

                  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