469,579 Members | 1,146 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,579 developers. It's quick & easy.

Open Event or Load Event

65
Hi all,

I have a question. If I have a form that has a vb code in the Open Event and another code in Load Event, which one starts before when running this form? Does the Load Event code runs before or the vise versa?

Thank you,
Abolos
Jul 30 '07 #1
4 5020
dima69
181 Expert 100+
Hi all,

I have a question. If I have a form that has a vb code in the Open Event and another code in Load Event, which one starts before when running this form? Does the Load Event code runs before or the vise versa?

Thank you,
Abolos
Generally, Open event fires before Load event. But you cannot be sure that Load event will fire AFTER the code in Open event will be completed.
Moreover, if your form is actually a subform, the Open and Load events for that form can run more then once, in that case the event sequence can be quite messed up.
Jul 30 '07 #2
missinglinq
3,532 Expert 2GB
The order of events is

Open - Load - Resize - Activate - Current

When you invoke a form with subform(s) they actually load before the main form does.

Linq ;0)>
Jul 30 '07 #3
abolos
65
Thank you guys for your assistance regarding this matter,
Abolos
Jul 31 '07 #4
missinglinq
3,532 Expert 2GB
That's why we're here!

Linq ;0)>
Jul 31 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by David McCulloch | last post: by
8 posts views Thread by Dominic Tocci | last post: by
3 posts views Thread by MrNobody | last post: by
5 posts views Thread by Steve Lloyd | last post: by
2 posts views Thread by tomlebold | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.