Application.Idle not called when application does not have focus

  • Thread starter Thread starter dcolak
  • Start date Start date
D

dcolak

I have a problem with Application.Idle event.

It's not being called when an application (Windows Forms) is without
focus.

If you pass with mouse over the application's form (without activating
it) Application.Idle *IS* being called.

No mouse over form and no focus -> no Application.Idle being called.

What should I do to make it work? :-|

Using .NET 2.0 framework.
 
Is the application already idle when the application does not have focus
and the mouse is not over the form? The event is only called once right
before it enters the idle state until it leaves the idle state.

BTW, be sure to remove your event handlers in the Application.Exit event
or you will have a memory leak.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
 
Back
Top