System.Windows.Forms.FormClosedEventArgs.CloseReason Property

Gets a value that indicates why the form was closed.

Syntax

public CloseReason CloseReason { get; }

Value

Documentation for this section has not yet been entered.

Remarks

A System.Windows.Forms.Form can be closed because of a variety of reasons, both user-initiated and programmatic. The FormClosingEventArgs.CloseReason property indicates the reason for the closure.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0