xtd 0.2.0
Loading...
Searching...
No Matches

◆ close_reason

enum class xtd::forms::close_reason
strong

Specifies the reason that a form was closed.

Header
#include <xtd/forms/close_reason>
Namespace
xtd::forms
Library
xtd.forms
Remarks
The form_closing and form_closed events are raised when a form is closed, either through user action or programmatically. Handlers for these events receive parameters of type form_closing_event_args and form_closed_event_args, respectively. Both of these event argument classes use the close_reason enumeration.
Enumerator
none 

The cause of the closure was not defined or could not be determined.

windows_shut_down 

The operating system is closing all applications before shutting down.

mdi_form_closing 

The parent form of this multiple document interface (MDI) form is closing.

user_closing 

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.

task_manager_closing 

The Microsoft Windows Task Manager is closing the application.

form_owner_closing 

The owner form is closing.

application_exit_call 

The Exit method of the Application class was invoked.