Where to put code??

  • Thread starter Thread starter craig
  • Start date Start date
C

craig

Quick question....

How should I determine whether code used to confiure the layout of a form
should be placed in the form constructor or in the form load event??

I wish there were a good reference that described the complete lifecycle of
a form (order of events, etc.).

Thanks!!
 
Here's is the firing order of a form

Resize
Move
Load
Layout
Activated
Paint
Closing
Closed
Deactivate
 
* "craig said:
How should I determine whether code used to confiure the layout of a form
should be placed in the form constructor or in the form load event??

I wish there were a good reference that described the complete lifecycle of
a form (order of events, etc.).

Why not read the documentation for 'System.Windows.Forms.Form' and all
of its events/methods/properties?
 
Back
Top