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
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.