Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a program and I need for certain keyboard "keys" to bascially be disabled. For Instance, I dont want the user to be able to control alt delete once the program is running. Is there a way that I could disable the "control" key once the program starts running. Thanx, any help would be appreciated.

 

-=Simcoder=-

Whatever thy hand findest to do, do it with all thy heart - Jesus
Posted

There are plenty of reasons. The reason I need it, is for a log on screen to gain access to a computer. It would be pretty easy if to exit out the application if someone could just press cntl-alt-delete

 

-=Simcoder=-

Whatever thy hand findest to do, do it with all thy heart - Jesus
Posted
Yeah thats what I was thinking. I was hoping that I could disable the control key all together. I thought maybe Vb.Net could intercept the key before it reaches Windows. But like you said, for security reasons, I'm not sure if its possible. Are their any other alternatives that I could use to pretty much lock an application that way a user could not exit it by means of control alt delete? If so, I'd appreciate it.
Whatever thy hand findest to do, do it with all thy heart - Jesus
  • *Gurus*
Posted
The keys reach Windows before they reach your application. As you said, for security reasons, this will not be possible in any recent incarnation of Windows. It might be possible in Windows 98, but I don't know how and wouldn't tell you if I did due to policies on this forum.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Posted

Ahh, Sorry guys, I can assure you its not a virus, I just wanted to make a security type of program that couldn't be closed so easily. Thats about it!

 

-=Simcoder=-

Whatever thy hand findest to do, do it with all thy heart - Jesus
Posted

Btw, Thanks for the pm Dynamic! I'm gonna go ahead and look through it and see what I can find. Rest assure, I don't have any malicious intentions, I'm just trying to learn VB and I thought there would be a way to secure a computer using it. Thanks again!

 

-=Simcoder=-

Whatever thy hand findest to do, do it with all thy heart - Jesus

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...