Link to home
Start Free TrialLog in
Avatar of Maneor
Maneor

asked on

Idle Form

When a load a form and receives no user interaction, is it possible to detect when the form is not being used?
ASKER CERTIFIED SOLUTION
Avatar of ptmcomp
ptmcomp
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RomanPetrenko
RomanPetrenko

In Application class you have static event Idle, you can use it following way:
Form1_Load(..)
{
...
  Application.Idle += new EventHandler(this.OnIdle);
...
}
private void OnIdle(object sender, System.EventArgs args)
{
//Do anything you want, IDLE-TIME!!!
}