Where can I find a list of the sequence of events that a vb.net form goes through... when the execut

  • Thread starter Thread starter \A_Michigan_User\
  • Start date Start date
A

\A_Michigan_User\

Where can I find a list of the sequence of events that a vb.net form goes
through... when the executable is first run?
(Before the user has moved/clicked/typed anything).

What order do these happen: load, active, validate, paint, resize, shown,
etc
(And all the others.)

I'm trying to run some of my own code just BEFORE the form is shown.... (but
AFTER Load() has happened).

Thanks.
 
Create a simple one-form application, and put a Debug.WriteLine(<event
name>) statement in each event that the form supports, and then just run it
and look at the output window.

Tom Dacon
Dacon Software Consulting
 
Does this mean it is not documented anywhere? I can't find it in the standard
docs. I found an entry called "Order of Events in Windows Forms", but it
doesn't actually tell the order.
 
Back
Top