D
Dean Slindee
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
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