Good afternoon sirs,
Is there a way to be able to detect when a user has pressed the key ImpPnt
?
What I'm wanting to implement is being able to detect when a user has pressed the key ImpPnt
or PrntScrn
from any control within any form that is within a module and/or application.
The application where I need to implement this has several projects, some of them are developed entirely in VB and others in C#.
Sincerely, Juan Manuel
If you can implement the keyup event example:
C#:
VB:
note this works as long as the form has the focus.
Cheers...
Assuming that main is your main form:
Make sure the KeyPreview property on the form is set to true.