Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,063 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,753 people online right now. Registration is fast and FREE... Join Now!




How to make main form prevent user from using other pc apps?

 
Reply to this topicStart new topic

How to make main form prevent user from using other pc apps?

criverapr
2 Mar, 2008 - 11:22 AM
Post #1

New D.I.C Head
*

Joined: 2 Mar, 2008
Posts: 2

I have an app that when the user logs in to windows it will automatically startup and will have to be the only app user can use. Is there a way to prevent the user from hitting alt+tab, ctrl+esc, and others to get to the windows functions? Would it be better to control this using windows policies through Active Directory if possible? Thanks
User is offlineProfile CardPM
+Quote Post

BenignDesign
RE: How To Make Main Form Prevent User From Using Other Pc Apps?
3 Mar, 2008 - 01:30 PM
Post #2

Code monkey have boring meeting with boring manager Dom.
Group Icon

Joined: 28 Sep, 2007
Posts: 1,037



Thanked: 3 times
Dream Kudos: 150
My Contributions
First, I can't help but wonder why you would want to and/or need to do this.

Second, if you are aiming to prevent process termination, there is no real way to do it. That being said, I would be willing to wager there's not really a way to suppress other processes from running at the same time as your app.

Third, it MIGHT be possible to force the program to restart immediately after termination, but restricting what a user can and cannot access on a given system would be best left to server administration of usergroup permissions.

Fourth, I could be totally wrong here, just throwing out what little bit I'd like to think I know. biggrin.gif

This post has been edited by BenignDesign: 3 Mar, 2008 - 01:32 PM
User is offlineProfile CardPM
+Quote Post

criverapr
RE: How To Make Main Form Prevent User From Using Other Pc Apps?
3 Mar, 2008 - 01:44 PM
Post #3

New D.I.C Head
*

Joined: 2 Mar, 2008
Posts: 2

QUOTE(BenignDesign @ 3 Mar, 2008 - 02:30 PM) *

First, I can't help but wonder why you would want to and/or need to do this.

Second, if you are aiming to prevent process termination, there is no real way to do it. That being said, I would be willing to wager there's not really a way to suppress other processes from running at the same time as your app.

Third, it MIGHT be possible to force the program to restart immediately after termination, but restricting what a user can and cannot access on a given system would be best left to server administration of usergroup permissions.

Fourth, I could be totally wrong here, just throwing out what little bit I'd like to think I know. biggrin.gif


First - Unfortunately it is a client Request. The app is for a production line in a manufacturing plant and they don't want users going into word, internet explorer, etc.

Second - No really worried about this.

Third - I'll get in touch with the server admins to see what we can do with this.

Fourth - Thanks for the feedback. :-D

That aside I've seen apps that do this. When they load they take over the whole screen and don't let the user change to any other app.

Maybe it can be done with maximize and setting focus?
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: How To Make Main Form Prevent User From Using Other Pc Apps?
3 Mar, 2008 - 01:44 PM
Post #4

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 9,483



Thanked: 161 times
Dream Kudos: 9075
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
About the only keystroke combination you cannot override is Ctrl + Alt + Delete. That keystroke is hooked into the actual OS, leaving you no way of suppressing or overriding it unless you do 1 of 3 things:

  1. Write a GINA stub
  2. Write a keyboard driver
  3. Replace TaskMgr.exe with your own program.


And of course neither of these 3 can be done in VB.Net, you would need a language like C or C++. You need to remember that Ctrl+Alt+Delete is the first line of defense for the OS, and Microsoft intentionally made it difficult to suppress.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 10:40PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month