Hi, i need to block the windows2000 function printscreen and copy - past. Is there any API call or something else?
Thanks in advance
Printable View
Hi, i need to block the windows2000 function printscreen and copy - past. Is there any API call or something else?
Thanks in advance
Do you mean Ctrl+C, Ctrl+V?
Why do you would like to block those keys?
Block for just inside your app or globally?
If its globally, that doesnt sound like a good idea as it will irritate users when they need to do it in other apps.
it is for an application in the security area - client wants this .....
If it is possible to block Ctr-C - Ctrl-V - PrintScreen only for the app would be ok. But I think I have to do this on a OS level.
For the app you can use the KeyDown or KeyPress event of the Form and set the forms KeyPreview property to True. In the event you will clear the clipboard.
@RobDog888:
Many thanks the easy answers are the best one. :D :D
I was looking for API or more deeper, but .... (see last sentence)
many thanks
The only part that you can not do is if the form is not the active window. In that case you cant do much about it.
s.it there has to be a but .. ok same question again - any sollution if form is not active :(
It really isn't a good idea.
Anyway, you will need to implement low level hooking - take a look at sample below - you should get some idea:
Trapping Special Key Events using Low Level Hooks
@RhinoBull :
Many thankx - I think this is a good example. It will defenitly help.