all groups > dotnet windows forms > october 2006 >
You're in the

dotnet windows forms

group:

Application.Idle not called when application does not have focus


Application.Idle not called when application does not have focus dcolak NO[at]SPAM gmail.com
10/30/2006 7:05:50 PM
dotnet windows forms: 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.
Re: Application.Idle not called when application does not have focus Bryan Phillips
11/1/2006 6:00:32 PM
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




[quoted text, click to view]
AddThis Social Bookmark Button