Application Events
.NET Framework (current version)
Namespace:
System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | ApplicationExit | Occurs when the application is about to shut down. |
![]() ![]() | EnterThreadModal | Occurs when the application is about to enter a modal state. |
![]() ![]() | Idle | Occurs when the application finishes processing and is about to enter the idle state. |
![]() ![]() | LeaveThreadModal | Occurs when the application is about to leave a modal state. |
![]() ![]() | ThreadException | Occurs when an untrapped thread exception is thrown. |
![]() ![]() | ThreadExit | Occurs when a thread is about to shut down. When the main thread for an application is about to be shut down, this event is raised first, followed by an ApplicationExit event. |
Show:

