Easy question

How do I get a form to load in the background.  i.e.  I have a splashscreen (frmSplash) that loads first and want another form (frmMain) to load in the background.  After frmMain finishes loading the it shows itself and closes the splashscreen.

thanks
sopheakAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ArkConnect With a Mentor Commented:
Sorry
You need
Load frmMain
Cheers
0
 
Brendt HessSenior DBACommented:
In your frmMain's Form_Load event, add:

    frmSplash.Show
    frmSplash.Refresh

at the top.  Then, when the form is loaded and ready to go, just add:

    frmSplash.Unload

That should do it
0
 
sopheakAuthor Commented:
How do I get frmMain to load in the background,(or hidden when it is loading)?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
ArkCommented:
Hi
frmMain.Load - load form (not display)
frmMain.Show - (display form. If not loaded then load it)
Cheers
0
 
Brendt HessSenior DBACommented:
frmMain won't show until the Form_Activate event - it is hidden during Form_Load.  Put all of your startup code in Form_Load.
0
 
sopheakAuthor Commented:
Ark

I put in frmMain.load and I get a method or data member not found.  Am I missing something?

0
 
sopheakAuthor Commented:
thanks
0
All Courses

From novice to tech pro — start learning today.