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 to prevent user to go back to desktop?

How to prevent user to go back to desktop?

Scheduled Pinned Locked Moved C#
businesstutorialquestion
9 Posts 7 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.
  • B Offline
    B Offline
    bug_aonz
    wrote on last edited by
    #1

    For some business reasons, i need my win form app run with fullscreen and not allow user to click any hot keys (such as windows button, alt+tab ,etc.) to go back to desktop or close the program. is it possible to do this? thank ^^

    S S B B 4 Replies Last reply
    0
    • B bug_aonz

      For some business reasons, i need my win form app run with fullscreen and not allow user to click any hot keys (such as windows button, alt+tab ,etc.) to go back to desktop or close the program. is it possible to do this? thank ^^

      S Offline
      S Offline
      subai
      wrote on last edited by
      #2

      i read somewhere that we have three ways of showing forms/dialogs (i did not remember exact text) 1- normal form.Show() 2- modal form.ShowDialog() 3-system modal ? i don't know how to have system modal but it said that it will work for your purpose

      I Wish the Life Had CTRL-Z Wizard's First Rule : People are fool,they believe what they want to believe or what they afraid to believe www.subaitech.blogspot.com

      1 Reply Last reply
      0
      • B bug_aonz

        For some business reasons, i need my win form app run with fullscreen and not allow user to click any hot keys (such as windows button, alt+tab ,etc.) to go back to desktop or close the program. is it possible to do this? thank ^^

        S Offline
        S Offline
        Simon P Stevens
        wrote on last edited by
        #3

        No, it's not. The user has, and always should have final control of their PC. There is no way to intercept the Ctrl+alt+del button press. Only the WinLogon process can receive notification of this key combo. What is your reason for wanting to do this?

        Simon

        1 Reply Last reply
        0
        • B bug_aonz

          For some business reasons, i need my win form app run with fullscreen and not allow user to click any hot keys (such as windows button, alt+tab ,etc.) to go back to desktop or close the program. is it possible to do this? thank ^^

          B Offline
          B Offline
          blackjack2150
          wrote on last edited by
          #4

          bug_aonz wrote:

          For some business reasons...

          Yeah, right. Am I the only one who smells malware?

          H 1 Reply Last reply
          0
          • B blackjack2150

            bug_aonz wrote:

            For some business reasons...

            Yeah, right. Am I the only one who smells malware?

            H Offline
            H Offline
            Harvey Saayman
            wrote on last edited by
            #5

            not neccecaraly... i wanted to do the same thing last year trying to port the examination system we used at my collage to C#... if your writing an exam you dont want students googling the questions... so thats a perfectly legit reason to want this...

            Harvey Saayman - South Africa Junior Developer .Net, C#, SQL

            you.suck = (you.passion != Programming)

            P 1 Reply Last reply
            0
            • H Harvey Saayman

              not neccecaraly... i wanted to do the same thing last year trying to port the examination system we used at my collage to C#... if your writing an exam you dont want students googling the questions... so thats a perfectly legit reason to want this...

              Harvey Saayman - South Africa Junior Developer .Net, C#, SQL

              you.suck = (you.passion != Programming)

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #6

              Don't have browsers on the computers. Don't attach the computers to the Internet. Detect the attempt and fail the student. Mightn't they still be able to use a Web-enabled phone?

              1 Reply Last reply
              0
              • B bug_aonz

                For some business reasons, i need my win form app run with fullscreen and not allow user to click any hot keys (such as windows button, alt+tab ,etc.) to go back to desktop or close the program. is it possible to do this? thank ^^

                B Offline
                B Offline
                bug_aonz
                wrote on last edited by
                #7

                The propose is to prevent shop attendant not to use any thing except only my program which is developed for product ordering.

                B 1 Reply Last reply
                0
                • B bug_aonz

                  The propose is to prevent shop attendant not to use any thing except only my program which is developed for product ordering.

                  B Offline
                  B Offline
                  blackjack2150
                  wrote on last edited by
                  #8

                  If that's the case, try to find information on how an information kiosk works (tourist info, trains, buses, those types). Most run Windows XP, but there is only one usable application.

                  A 1 Reply Last reply
                  0
                  • B blackjack2150

                    If that's the case, try to find information on how an information kiosk works (tourist info, trains, buses, those types). Most run Windows XP, but there is only one usable application.

                    A Offline
                    A Offline
                    ajtunbridge
                    wrote on last edited by
                    #9

                    They generally don't have QWERTY keyboards attached to them. You can probably intercept most key combinations using the UserActivityHook class here: http://www.codeproject.com/KB/cs/globalhook.aspx[^] The user will always be able to Ctrl -> Alt -> Delete and Ctrl -> Shift -> Esc it though. Why not just remove those buttons from their keyboard? Save a lot of hassle :)

                    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