I'am building an application in VB6.0.I know how to use API's in VB. I don't want the users of my application to take a PrintScreen of my form, so how can I acheive it in VB.
Thank you,
Sudhi
Printable View
I'am building an application in VB6.0.I know how to use API's in VB. I don't want the users of my application to take a PrintScreen of my form, so how can I acheive it in VB.
Thank you,
Sudhi
The VB I worked with didn't really let you (even though it was supposed too -- a bug with VB stopped it from working), but if you can figure out what ASCII key number that is, you can go into the frmNAME_KeyPress selection, and say something similar to this:
If (KeyAscii = ##) Then
Do what you want it to do instead
That's supposed to work (works best in text boxes, where you don't want the user hitting certain letters -- but for some reason it didn't work with my works VB).
-Picky
Merrion certainly has a way out with a keyboard hook. But here's a simpler workaround. Not a neat solution though.
private Sub Form_Load()
Timer1.Interval = 500
End Sub
private Sub Timer1_Timer()
Clipboard.Clear
End Sub