Sequence of events and all hooks made available in System.Windows.Forms
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 explana开发者_JAVA技巧tion 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.
Opening and closing an empty form under Runtime Flow monitoring produces the following sequence of On* calls:
Typing "1" in a text box and pressing "Tab" to a button:
Closing a form with a text box and a button:
Try these sources:
Windows Forms Lifecycle
Basic-events-in-the-Lifecycle-of-Forms-and-Controls
精彩评论