Gets a value that indicates the reason of the closing.

Syntax

public System.Windows.Forms.CloseReason CloseReason{ get; }

Limitations

Read only.