Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Program wasn't in use for 2 minutes

Tags:

c#

winforms

popup

I wan't to popup a specific form when the user didn't use the program for 2 minutes, let's say.

Means: When the application run, and the user didn't press any key / any button / didn't move the cursor at all for 2 minutes, I want the application to detect it and to show an instance of one of the form's window. I use winform application in c#.

How can I do it? Tal.

like image 427
Tal Avatar asked Jun 09 '11 07:06

Tal


1 Answers

See the Application.Idle event and this related question:

How to detect when the program is idle?

There is also a detailed example here:

http://www.codeproject.com/KB/miscctrl/Application_Idle.aspx

like image 148
ColinE Avatar answered Sep 22 '22 03:09

ColinE