The FormCloseReason enumeration contains values that determine result of form closing.
It is used by the following property:
Value | Brief description |
0 | None. Reason of closing was not determined and it cannot be determined. |
1 | WindowsShutDown. Operating system closes all applications before completion of work. |
2 | MdiFormClosing. MDI parent form closing causes closing of the MDI child form. |
3 | UserClosing. The user closes a form using custom interface, for example, by pressing the Close button in the form window, selecting the Close parameter in the system menu of the dialog box, pressing ALT+F4 or calling the Close method in the code. |
4 | TaskManagerClosing. Microsoft Windows Task Manager closes application. |
5 | FormOwnerClosing. Parent form closing causes form closing. |
See also: