Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 137
  • Last Modified:

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
0
sopheak
Asked:
sopheak
  • 3
  • 2
  • 2
1 Solution
 
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
 
ArkCommented:
Hi
frmMain.Load - load form (not display)
frmMain.Show - (display form. If not loaded then load it)
Cheers
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
 
ArkCommented:
Sorry
You need
Load frmMain
Cheers
0
 
sopheakAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now