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
Public property ApplicationExitCall 6 The TradingApp was shut down.
Public property FormOwnerClosing 5 The owner form is closing.
Public property MDIFormClosing 2 The parent form of this multiple document interface (MDI) form is closing.
Public property None 0 The reason could not be determined.
Public property TaskManagerClosing 4 The Microsoft Windows Task Manager is closing the application.
Public property UserClosing 3 The user is closing the application through the user interface (UI).
Public property WindowsShutDown 1 The operating system is closing all applications before shutting down.