Search code examples
c#formskeypress

How do I detect keyPress while not focused?


I am trying to detect the Print Screen button press while the form is not the current active application.

How to do that, if possible?


Solution

  • Yes you can, it's called "System hooks", take a look at Global System Hooks in .NET.