This question has been asked before, but I haven't yet found an answer.

I wish to test to see if the form I have is closing because the "X" button has been clicked.

I know I need to put code in the fomr_Closing event,
and I know I can cancel the close using "e.Cancel = True"

However, I only wish to do this if the form is closing due to the"X" and not the numerous other reasons a form could be closing.

Any ideas?