Export (0) Print
Expand All

FormClosingEventArgs Constructor

Initializes a new instance of the FormClosingEventArgs class.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public FormClosingEventArgs(
	CloseReason closeReason,
	bool cancel


Type: System.Windows.Forms.CloseReason

A System.Windows.Forms.CloseReason value that represents the reason why the form is being closed.

Type: System.Boolean

true to cancel the event; otherwise, false.

The closeReason and cancel parameters are used to initialize the CloseReason and Cancel properties, respectively.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft