Click here to Skip to main content
15,742,655 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
I'm creating a small payroll query tool for employees and I'll install it on a PC outside the office.

I don't want anyone to close this application or even switch windows (explorer, start menu, taskmanager,.... etc) without I input a password to switch it off.

Any ideas in mind?
Updated 20-Dec-11 1:34am
Pete O'Hanlon 20-Dec-11 7:38am    
That's too close to the behaviour of a virus. The main responders in Code Project have quite strong feelings about helping people write things that look like viruses, so I suspect you won't get too many takers.

If you need to restrict the system, you should look at using group policys instead.
Sergey Alexandrovich Kryukov 20-Dec-11 9:10am    
Agree! However, what OP needs is probably the Kiosk Mode. I've given a couple of references in my answer -- please see.

1 solution

As Pete correctly pointed out in his comment to the question, "that's too close to the behavior of a virus". I'm agree. You probably need something else: the Kiosk Mode.

Please see:
Running a Web Site in Kiosk Mode with C#[^],
c# program ctrl-alt-del screen windows 7[^].

Share this answer
yasser_ja 21-Dec-11 1:34am    
Can't we deny the user from moving the cursor away from the activated window + deny the key press of specified keys?
I'm a basic adodb programmer with .mdb database. Not planning for any virus things really.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900