How to prevent user to go back to desktop?
-
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 ^^
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
-
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 ^^
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
-
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 ^^
bug_aonz wrote:
For some business reasons...
Yeah, right. Am I the only one who smells malware?
-
bug_aonz wrote:
For some business reasons...
Yeah, right. Am I the only one who smells malware?
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)
-
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)
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?
-
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 ^^
-
The propose is to prevent shop attendant not to use any thing except only my program which is developed for product ordering.
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.
-
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.
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 :)