Simcoder Posted May 25, 2003 Posted May 25, 2003 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=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
Leaders Squirm Posted May 25, 2003 Leaders Posted May 25, 2003 Why on earth would you need to do this? Quote Search the forums | Still IRCing | Be nice
Simcoder Posted May 25, 2003 Author Posted May 25, 2003 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=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
Night Posted May 26, 2003 Posted May 26, 2003 Ctrl-Alt-Del is the key combination that ONLY Window can receive (for security reasons). So I don't think you can disable it Quote
Simcoder Posted May 26, 2003 Author Posted May 26, 2003 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. Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
*Gurus* divil Posted May 26, 2003 *Gurus* Posted May 26, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Leaders dynamic_sysop Posted May 26, 2003 Leaders Posted May 26, 2003 i've sent you a pm showing how to do it :) didnt want to post it on here because i dont think it's appropriate with the policies on the board:) Quote
Moderators Robby Posted May 26, 2003 Moderators Posted May 26, 2003 The first thing that I would do upon discovering that an app took control of my PC is to uninstall it. Quote Visit...Bassic Software
Leaders dynamic_sysop Posted May 26, 2003 Leaders Posted May 26, 2003 my sentiments exactly robby. Quote
*Experts* mutant Posted May 26, 2003 *Experts* Posted May 26, 2003 I agree with both of you :) I would automatically think of an app like that as a virus and would get rid of it. Quote
Simcoder Posted May 26, 2003 Author Posted May 26, 2003 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=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
Simcoder Posted May 26, 2003 Author Posted May 26, 2003 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=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.