Hello Gurus
How to disable/enable Alt button ONLY on WinXP?
Thanks
Printable View
Hello Gurus
How to disable/enable Alt button ONLY on WinXP?
Thanks
Are you asking for your own application only? Explain with more detail. As a keyboard user vs mouse user, I'd be really irate if my Alt keys stop working, especially Alt+Tab which I use a ton.
Yes, disabling any key(s) should be for your app only as anything else is just too irratating. I would quickly uninstall an app that did that.
It is not just for my app only.
So, you want to toggle the ability to use the ALT key?
You would need to code the KeyDown event of the Form, but before I could supply an example I would need to know under what conditions should you be able to use ALT and under what conditions should you not be able to use ALT.
Here the condition.
I have a third party software. This software running in full screen mode and always on top.
So, I want to avoid the user from closing this software by using Alt-F4. That why I want to disable ALT button all the time and it will running at background.
Extra info;
1-The third party software is Library Management System(Client Module).
So, this is a program to which you do not have access to the source code, right?
This means it would be more than just this app. You can't alter the source, because you don't have it, so this would have to be something done across the system which would mean the ALT key wouldn't be available to anything.
What is bad about the user closing it? There are more ways than just ALT-F4. I would assume this software has its own close buttons/features. How are you going to disable them?
Yes. The library system, I bought from the Shelf.
And this library system can be close by using Alt-F4.
I hope, I can have sample code to disable Alt-F4 here.
But since you have no access to the source code for the third party software you cant add code to it to disable alt+f4. You will need to write an app that subclasses the third party app and intercepts the alt+f4 message but then how would you propose it ever gets closed?
This will need to be a VB6 & C++ solution.