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

How to disable print screen while running my VB.net application. any one help me and thanks in advance.
Posted
Comments
A PandiaRajan 20-Oct-11 5:28am    
Hello friends, this is my client requirements. my client tool have this option so, i need to do to my application also.

 
Share this answer
 
Comments
A PandiaRajan 23-Nov-11 2:14am    
Thanks for your effort!!!
In truth, you can't.
There are so many different ways to take a copy of the screen, that it would be foolish to assume you have them all covered. The PrtScrn button (and its SHIFT , CTRL and ALT version) can be trapped in the KeyPress or KeyDown event and disabled within your app, but that leaves you needing a global hook to disable them outside it. Not to mention the multiplicity of existing free screenshot applications out there, and it isn't difficult to write one yourself.

Why do you think you need this? Because I think you will have problems if you are relying on this as a security feature.
 
Share this answer
 
Even if you are able to disable the print-screen functionality there are loads of screen capturing programs out there that will still work.

And even if you somehow managed to stop them all, you would still have to deal with user taking photographs of the monitor.
 
Share this answer
 
Comments
A PandiaRajan 23-Nov-11 2:14am    
Thanks for your effort!!!

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