D
Danny J. Lesandrini
I just posted this in the vb.languages forum but realized that it probably fits
better here. Excuse the multiple posts please.
My project is set to load frmSplash first, which runs some housekeeping stuff.
When that finishes, I want to open frmMain. This code DOESN'T WORK ...
Me.Close()
gfrmMain = New frmMain
gfrmMain.Show
the object variable, gfrmMain is declared in a public module.
Public gfrmMain As frmMain
The form loads ... flashes and disappears when frmSplash is closed. If I set
frmSplash Not Visible, then the form remains, so clearly it's a scope issue. I
thought that if the variable is declared as a public frmMain, in a public module,
it would remain after frmSplash is closed ... but it doesn't
How can I accomplish this:
Open frmSplash
Run housekeeping code
Close frmSplash
Open frmMain
Thanks in advance for any suggestions you may have
better here. Excuse the multiple posts please.
My project is set to load frmSplash first, which runs some housekeeping stuff.
When that finishes, I want to open frmMain. This code DOESN'T WORK ...
Me.Close()
gfrmMain = New frmMain
gfrmMain.Show
the object variable, gfrmMain is declared in a public module.
Public gfrmMain As frmMain
The form loads ... flashes and disappears when frmSplash is closed. If I set
frmSplash Not Visible, then the form remains, so clearly it's a scope issue. I
thought that if the variable is declared as a public frmMain, in a public module,
it would remain after frmSplash is closed ... but it doesn't
How can I accomplish this:
Open frmSplash
Run housekeeping code
Close frmSplash
Open frmMain
Thanks in advance for any suggestions you may have