tags:

views:

65

answers:

2

Is there any explanation of the sequence of events that occurs in the creation, manipulation, and closing of System.Windows.Forms's various forms and components? Is there an explanation of all possible hooks that I can override and the order they are called in and what happens in between their calling?

I've run into so many avoidable problems because I don't have a good understanding of what's going on under the hood here.

+2  A: 

Opening and closing an empty form under Runtime Flow monitoring produces the following sequence of On* calls:

alt text

Typing "1" in a text box and pressing "Tab" to a button: alt text

Closing a form with a text box and a button:

alt text

Sergey Vlasov
I don't guess you'd be willing to throw a text box on the form, type on it, tab away from the text box, and then close the form would you?
John Berryman
Sergey Vlasov