C#C
C#4y ago
Bunda

Launch WinForms app when user inactive

I'm trying to create a WinForms app that will show a banner after x minutes and lock the screen. Now I currently do have a Form with an overlay that gradually fades the screen and will lock it. However I'm not sure how to launch it after x minutes of user inactivity.

Does Windows have any API's that you can listen to to make it easier? If anyone can guide me in the right direction that would be great.
Was this page helpful?