CloseReason Enumeration
List of values that describe the reason a form was closed. Referenced by the CloseReason property of the FormClosedEventArgs class.
Namespace: elsystem.windows.forms
Enumerated Values
Name |
Value |
Description | |
![]() |
ApplicationExitCall | 6 | The TradingApp was shut down. |
![]() |
FormOwnerClosing | 5 | The owner form is closing. |
![]() |
MDIFormClosing | 2 | The parent form of this multiple document interface (MDI) form is closing. |
![]() |
None | 0 | The reason could not be determined. |
![]() |
TaskManagerClosing | 4 | The Microsoft Windows Task Manager is closing the application. |
![]() |
UserClosing | 3 | The user is closing the application through the user interface (UI). |
![]() |
WindowsShutDown | 1 | The operating system is closing all applications before shutting down. |