I wasn't programming for Windows in the "good old days," but you can
either put initialisation code in the constructor for a form, or within
the Load event.

VS.NET actually creates an InitializeComponent() method itself, but I
wouldn't mess with it. Actually, it just calls that method from the
constructor anyway, so there really isn't anything special about it.

Here's the order in which events are processed:

Main
Constructor
InitializeComponent
Load
Layout
Activated
Paint
Closing
Closed
Dispose

Hopefully this will help you out.
Brian

-----Original Message-----
From: Rolls, Robert [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, April 21, 2002 11:20 PM
To: [EMAIL PROTECTED]
Subject: [DOTNET] Win Form Initialisation.


In the good old days we had WM_INITDIALOG that seemed to be the place to
write initialisation code where would I do the equivalent in WinForms?
or is this just plain stupid.

Regards,
Robert Rolls

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to