How can I make a Windows Forms application listen for global keystrokes?

I am making a small note taking application. Therefore, when I print a β€œnote” somewhere on my computer, my window will appear and show me a text box to enter something and save it in XML.

I am puzzled by how to make the program "listen" to my keystrokes. If this helps, the application will be launched on the system tray. :)

+4
source share

Source: https://habr.com/ru/post/1308198/


All Articles