Link to home
Start Free TrialLog in
Avatar of sopheak
sopheak

asked on

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
Avatar of Brendt Hess
Brendt Hess
Flag of United States of America image

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
Avatar of sopheak
sopheak

ASKER

How do I get frmMain to load in the background,(or hidden when it is loading)?
Hi
frmMain.Load - load form (not display)
frmMain.Show - (display form. If not loaded then load it)
Cheers
frmMain won't show until the Form_Activate event - it is hidden during Form_Load.  Put all of your startup code in Form_Load.
Avatar of sopheak

ASKER

Ark

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

ASKER CERTIFIED SOLUTION
Avatar of Ark
Ark
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sopheak

ASKER

thanks