By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,783 Members | 1,347 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,783 IT Pros & Developers. It's quick & easy.

is it possible to define the order in which winform user controls load?

P: n/a
I have one control that absolutely must load before any other controls,
due to some initialisation code within it. Is there a way of getting
this control to load first? Moving the code from the load event to the
constructor isn't an option to get around this issue.

Any suggestions would be very gratefully received!!!


Mar 31 '06 #1
Share this Question
Share on Google+
3 Replies

P: n/a
I assume that this is a WebForms question, since Control doesn't have a
Load event in WinForms...?

Mar 31 '06 #2

P: n/a
Thanks for the reply Bruce.
No, it is WinForms. My User controls all have load events.


Mar 31 '06 #3

P: n/a
Ah, yes. Silly me. I didn't look at UserControl.

So far as I know, the CLR makes no guarantees about the order in which
event subscribers will be called.

What is the exact nature of the initialization? Perhaps there's another
way to achieve what you want to do, without requiring a particular
event ordering.

Mar 31 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.