Application.Idle not called when application does not have focus

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.
 
B

Bryan Phillips

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top