PC Review


Reply
Thread Tools Rate Thread

Where to put code??

 
 
craig
Guest
Posts: n/a
 
      8th Dec 2003
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!!


 
Reply With Quote
 
 
 
 
Paul Wardle
Guest
Posts: n/a
 
      8th Dec 2003
Try the Layout event?

"craig" <(E-Mail Removed)> wrote in message
news:uP2$(E-Mail Removed)...
> 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!!
>
>



 
Reply With Quote
 
Brian
Guest
Posts: n/a
 
      8th Dec 2003
Here's is the firing order of a form

Resize
Move
Load
Layout
Activated
Paint
Closing
Closed
Deactivate

"craig" <(E-Mail Removed)> wrote in message
news:uP2$(E-Mail Removed)...
> 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!!
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      8th Dec 2003
* "craig" <(E-Mail Removed)> scripsit:
> 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?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
craig
Guest
Posts: n/a
 
      9th Dec 2003
Thanks, Brian. That is exactly what I was hoping to learn.

"Brian" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Here's is the firing order of a form
>
> Resize
> Move
> Load
> Layout
> Activated
> Paint
> Closing
> Closed
> Deactivate
>
> "craig" <(E-Mail Removed)> wrote in message
> news:uP2$(E-Mail Removed)...
> > 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!!
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linq to XML--Are there code examples that make Linq as easy as SQL? Or how can I convert ths simple pseudo code into real code? Reece Microsoft C# .NET 4 10th Dec 2008 04:13 AM
ATI Radeon Drivers - Code 43, Code 37 & Code 10 =?Utf-8?B?SmFrZQ==?= Windows Vista Hardware 14 29th Aug 2006 06:50 AM
ATI Display Drivers - Code 43, Code 37, Code 10 Jake Windows Vista Hardware 2 8th Jul 2006 05:00 PM
what is the difference between code inside a <script> tag and code in the code-behind file? keithb Microsoft ASP .NET 1 29th Mar 2006 03:00 AM
[New] Zipoid - ZIP Code, City Name and Area Code Lookup - Zip Code to Zip Code Distance Calculation Mel Freeware 0 22nd Jul 2005 05:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:03 PM.