[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 134
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

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