FormClosingEventArgs(CloseReason, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the FormClosingEventArgs class.
public:
FormClosingEventArgs(System::Windows::Forms::CloseReason closeReason, bool cancel);
public FormClosingEventArgs (System.Windows.Forms.CloseReason closeReason, bool cancel);
new System.Windows.Forms.FormClosingEventArgs : System.Windows.Forms.CloseReason * bool -> System.Windows.Forms.FormClosingEventArgs
Public Sub New (closeReason As CloseReason, cancel As Boolean)
Parameters
- closeReason
- CloseReason
A CloseReason value that represents the reason why the form is being closed.
- cancel
- Boolean
true
to cancel the event; otherwise, false
.
Remarks
The closeReason
and cancel
parameters are used to initialize the CloseReason and Cancel properties, respectively.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.