Also, if I am merely hiding the form instead of closing it, is that the same procedure?
How to test for events
How can I test through code to see if two events have been fired in succession, namely the TextChanged event and the FormClosing (or FormClosed) event?
VulpesPosted Apr 8, 2013, 2:26 PM
These events won't, of course, fire if you simply hide the form but the Form_VisibleChanged event will fire.
Events which relate to controls on the form should fire in the order in which those events occur but you can test this with MessageBox.Show as Javeed suggested.
DuanePosted Apr 8, 2013, 1:39 PM
For instance, the TextChanged event of a particular label is fired, the the form that contains that label is closed, then the text values in various textboxes will be deleted.
I hope that clears it up.
Javeed M ShaikhPosted Apr 8, 2013, 11:46 AM
you can put a messagebox in these events and then check which one is called first and so on, to verify the sequence of events.