Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

When running my application, I would like to prevent the user switching from the application to another task entirely, using keyboard alt+tab and any other options.
I'm looking for a way doing it in a programmatic way under .net environment.

Thanks,
Zafrir
Posted

Why? That would annoy the heck out of me as a user.
 
Share this answer
 
Comments
Manfred Rudolf Bihy 26-Jun-11 6:31am    
Maybe OP is trying to implement a kiosk/POS solution. That's a scenario I can envision where this would not be a loathsome restriction. :-)
Sergey Alexandrovich Kryukov 26-Jun-11 21:32pm    
Good idea, Manfred; I'll provide a couple links on it.
I anyway voted 5 for Griff's answer.
--SA
Kim Togo 27-Jun-11 3:21am    
Why are you spamming cjaqtt. DC Power jack HAS noting to do with coding.
Sergey Alexandrovich Kryukov 27-Jun-11 16:50pm    
Reported.
--SA
It looks like you really need the Kiosk mode. The credit for the idea goes to Manfred. See this:
Running a Web Site in Kiosk Mode with C#[^],
c# program ctrl-alt-del screen windows 7[^].

SA
 
Share this answer
 
v2
Comments
Kim Togo 27-Jun-11 3:32am    
Good idea from Manfred with Kiosk/POS solution. I have not thought about. My 5.
Sergey Alexandrovich Kryukov 27-Jun-11 16:45pm    
Thank you, Kim.
--SA
I think you can restrict all this via Group Policy on Windows. Have the Windows login with a user, where Group Policy specified which program[^] that there is allowed to run.

Using Software Restriction Policies to Protect Against Unauthorized Software[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Jun-11 21:37pm    
Do you mean you need a policy to prohibit all applications except just one? Hm. I'm afraid it would be too inflexible approach.

Manfred suggested using Kiosk/POS solution; I provided a couple of links.
--SA

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