Specifies the reason that a form was closed.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The owner form is closing.
The parent form of this multiple document interface (MDI) form is closing.
The cause of the closure was not defined or could not be determined.
The Microsoft Windows Task Manager is closing the application.
The user is closing the form through the user interface (UI), for example by clicking the Close button on the form window, selecting Close from the window's control menu, or pressing ALT+F4.
The operating system is closing all applications before shutting down.
Available since 2.0