System.Windows.Forms.Application.Idle Event

Occurs when the application finishes processing and is about to enter the idle state.

Syntax

public static event EventHandler Idle

Remarks

If you have tasks that you must perform before the thread becomes idle, attach them to this event.

Note:

Because this is a static event, you must detach your event handlers when your application is disposed, or memory leaks will result.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0