Using object or form for MDI variable & variable without triggering form load.
Posted on 2006-12-02
I've got a boot form, a main form (MDI) and a few smaller child MDI forms. The boot form loads up and gets some information off disk. This information is then put into a variable on the main form, however the main form uses that information in the load event. Although it seems a bit of a chicken and the egg, unable to set the information in the main form without triggering the main form load event, which in turn uses the information that was meant to be set before the load event fired.
Also, I'm trying to treat the child MDI forms as objects, as such:
Dim myMDIChild1 As Object
Dim myMDIChild2 As Object
Private Sub MDIForm_Load()
Set myMDIChild1 = new mdiChild
Set myMDIChild2 = new mdiChild
A small problem, but I'm guessing because I declared them as objects, I don't get my nice code completion come up when attempting to access a method or variable of myMDIChild1. Any code workarounds?