February 25th, 2012, 10:11 AM
Detecting X button click of a window in winforms.
How can I detect the click event of the close (X) button at the top right corner of the control box of a form/window? Please note, I don't want to know about CloseReason, FormClosing, FormClosed or stuffs like these, unless they are inevitable. I exactly want to detect if the user clicked the X button of the form. Thanks.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.