473,396 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 5310
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

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

Similar topics

10
by: David McCulloch | last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it. Why not? (Don't ask why I simply did not open the window with the new size....my original problem was how to open a...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
3
by: MrNobody | last post by:
I'm pretty tired from working all day on this program and this one simple task of showing a certain form when the app initializes is driving me nuts... It opens very briefly then quickly...
3
by: hb | last post by:
Hi, I have a asp:button btnGo. When clicking this button, the code will parse a asp:table to find a specific ID under certain conditions. Once the ID is found, the code need to keep the current...
3
by: kermit | last post by:
Hi, I am hoping this is a foolish or simple question. I am creating a multiuser app. consisit of a login page and a dataentry page. If the user leaves the data entry page (other than exiting the...
3
by: feng | last post by:
We have a windows form project that has multiple child forms inherit from one base form. In our base form's form load event handler, we have some common logic in there. These common logic is...
5
by: Steve Lloyd | last post by:
Hi, I have a multi form windows application but when i open new forms they do not load up "crisply", they open bit by bit as the items are drawn. What is the best way to open the form so that...
13
by: Academic | last post by:
I have a MDI form, sometimes child forms and sometimes forms that are neither If I close the app the child forms closing and closed event happens followed by the Mdi form receiving the...
2
by: tomlebold | last post by:
When should the open event and load event on a form be used?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.