блакбазык
❔ WinForm - Trigger a function when the program does not have focus when the user press TAB
Hi.
I'm very new to C# and WinForms, I'm actually a Dart developer.
I'm trying to create some sort of stopwatch, where the program will always be on top of all the other programs, but will not have focus, and when the user press TAB it will start or reset the stopwatch.
Here's what I found during my research:
I have found a code that apparently fetch my tab key even if the program does not have focus.
But I do not have any idea of where to put it in my existing code.
But I do not have any result :/
13 replies