I want to set the CloseReason of a form after I call This.Close() inside the form.
Usually, this forms is closed by itself calling This.Close(), but I want to ask the us
Rather than creating the extra variable:
appClosing = true; this.Close();
You can call:
Application.Exit();
And then e.CloseReason will equal
CloseReason.ApplicationExitCall
Which might be what you're after.