Gets a value that indicates the reason of the closing.

Syntax

public System.Windows.Forms.CloseReason CloseReason{ get; }
Public ReadOnly Property CloseReason() As System.Windows.Forms.CloseReason

Limitations

Read only.