S
ssg31415926
Is there anyway to detect when the user has clicked the red X button
to exit an application (as opposed to triggering some other event
which runs code which sends the Close() message to the form?
I know I can use the CloseReason property of FormClosingEventArgs but
that shows UserClosing whether they click the Red X or my Close button
(which sends Close() to the form).
Is there any way to determine that it was the red X button they
clicked?
to exit an application (as opposed to triggering some other event
which runs code which sends the Close() message to the form?
I know I can use the CloseReason property of FormClosingEventArgs but
that shows UserClosing whether they click the Red X or my Close button
(which sends Close() to the form).
Is there any way to determine that it was the red X button they
clicked?