How to know user has clicked "X" or the "Close" button?
- by BDotA
in MSDN I found CloseReason.UserCloseing to know that the user had decided to close the form
but I guess it is the same for both clicking the X button or clicking the close button.
so How can I differentiate between these two in my code?
Thanks all.