473,385 Members | 2,243 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,385 software developers and data experts.

How to get frmMain to load before dependent forms?

My project has a main form (frmMain, the startup object for the project) and
several other "child" forms that are painted within a large panel on
frmMain.

In each form's Form_Load event, a Weak Reference for that form is loaded
into a global Hash table, like this:

Dim wr As WeakReference = New WeakReference(Me, False)

If Not hashTable.Contains(cfrmMain) Then

hashTable.Add(cfrmMain, wr)

End If

I also have the following declares in frmMain, just after the designer code,
for each "child" form that gets painted inside the panel on frmMain:

Friend frmAdmin As New frmAdmin

Friend frmAppointment As New frmAppointment

Friend frmBilling As New frmBilling

Friend frmSystem As New frmSystem

Each child form writes to the status bar on frmMain in their Form_Load
event.

Problem is, the load events for the child forms are firing before

the load event for frmMain has put a reference into the hash table.

How can I get frmMain's Form_Load to fire completely before child Form_Load
events

fire? Or, how can I get an entry for frmMain into hashTable before child
Form_Load

events fire?

Above and beyond this specific problem, I would like to find an article that
explains in

great detail exactly what happens in sequence when a VB application is
launched.

Thanks,

Dean Slindee


Nov 20 '05 #1
0 1842

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: yagish | last post by:
Hi Techies, Am really new with the Oracle 9i Forms and am searching for a way to perform Load Balancing in Oracle 9i Forms Application. Its not a J2EE application, so cannot go the OC4J way. I...
2
by: brianbender | last post by:
I am trying to load and unload assemblies dynamically and call methods and properties when loaded into an Appdomain I can load assemblies all day in the current AppDomain without references and...
0
by: Dean Slindee | last post by:
My project has a main form (frmMain, the startup object for the project) and several other "child" forms that are painted within a large panel on frmMain. In each form's Form_Load event, a Weak...
12
by: Dean Slindee | last post by:
My project has a main form (frmMain, the startup object for the project) and several other "child" forms that are painted within a large panel on frmMain. In each form's Form_Load event, a Weak...
2
by: Lou | last post by:
How do I access a property of a control that is part of frmMain from a class? Example: Public Class myClass Public ReadOnly Property DWidth() As Integer Get
5
by: Elmo Watson | last post by:
Let's say I have a child form - frmEdit - on that form a RichText Box called txtedit So - in VB6 days - I used to be able to refer to that particular active form's Rich Text box - like this: ...
4
by: Miguel | last post by:
I have an order entry database with two forms. One is for new orders the other is to update orders. The forms are identical except that one is strictly order entry. On both forms are three sets of...
26
by: jmartmem | last post by:
Greetings, I have an ASP page with two dynamic dependent list boxes written in JavaScript. My dependent lists work great, but my problem is that the values for "Program_Name" and "Project_Name"...
1
by: jmartmem | last post by:
Greetings, I have a nagging problem with client-side dynamic dependent list boxes that perhaps someone can help me troubleshoot. I have a form with a series of dynamic dependent list boxes....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.