sud_dus
September 8th, 2001, 12:32 AM
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
Thank you,
Sudhi
|
Click to See Complete Forum and Search --> : How to disable PrintScreen Key in VB sud_dus September 8th, 2001, 12:32 AM 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 Picky September 8th, 2001, 09:07 PM 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 shree September 9th, 2001, 11:02 AM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |