Ok, this should be really, really easy ... but I can't figure it out.
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 dissappears 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
--
Danny J. Lesandrini
dl*********@hotmail.com
http://amazecreations.com/datafast/