Thanks for your answer.
> From your description, I understand that you want to
> iterate througth all the components on a Forms.
The question was not how to iterate thru all components but WHEN do that
iteration. I need to do that iteration when all component have been loaded
and initialized. That is at least after InitializeComponent() has been
called or after the form constructor has been called.
I don't want to tell my component user that he must call a method at the end
of InitializeComponent or at the end of the form's constructor. I would like
the component to do it automatically at the right moment. I'm porting code
from Delphi.win32 to C#. Delphi form's constructor iterate thru all
component Loaded() method when it has finished loading all components (more
or less after the equivalent of InitializeComponent). This is very handy
because any component can override his Loaded() method to prepare itself to
work with other components dropped on the same form at yet be sure all other
components are up and running. Should this be important, the Delphi IDE let
you select the order in which the components are created, the equivalent of
changing the order of component creation and initialization in
InitializeComponent().
btw: I'm using C#.

Signature
Francois PIETTE
http://www.overbyte.be
> Hi Francois,
>
[quoted text clipped - 15 lines]
> in the MSDN, it did not have such Load method.
> Component Members
http://msdn2.microsoft.com/en-us/library/system.componentmodel.component_mem
> bers.aspx
>
[quoted text clipped - 8 lines]
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 11 Aug 2006 03:47 GMT
Hi Francois,
Sorry for misunderstood, from your description, it seems that you want the
UserControl which will have a load event, we can handle that event and the
code will be called automatically when the UserControl is loaded in runtime
after the ctor and InitializeComponent is called. But the component did not
have the load event per the MSDN I post in my last reply.
Anyway, if you do want to enable this in component class, you may want to
leverage the .NET winform designtime feature that will do some
customization when you add the component into the Winform project.
For detailed information you may post in the newsgroup below.
microsoft.public.dotnet.framework.windowsforms.designtime
If you still have any concern, please feel free to post here.
Thanks!
Best regards,
Peter Huang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.