Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to disable "Print Scrn" button in VB applications??

Status
Not open for further replies.

bnath001

Programmer
Aug 18, 2000
100
US
Hello,

New to VB. I have a VB application. When the user is using this application, I would like to disable the usage of "Print Scrn" button. I mean if the user hits the "Print Scrn" button, he should not be able to capture the screen shots in the buffer.

Can someone point me the right direction..

thank you
nath
 
I won't help if you can't prevent them from installing Hijac, HTML Image Editor or other software that can take "Screen Shots" using the "Time Delay" facility.
 
Thanks to you .

When I add the following code, it works fine.

If KeyCode = 44 or KeyCode = 106 Then
Clipboard.Clear
End If

It works fine. As long my screen/form is active and if the user hits Print Screen button, the code works.

But when the user shrinks my VB application (I mean the screen/form which has code) and is viewing other applications on the desktop and if hits the print screen button, he will get my VB Screen (which is shinked in size) and other application into the clipboard. How can I avoid this scenario.

Could someone point me right direction please...

thank you friend.
nath

 
I was looking for the same answer that you were lookin for and I found this post that will probably do exactly what you want with little modification.

thread222-256587

Hope it helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top