Solved

Easy question

Posted on 2000-03-29
7
129 Views
Last Modified: 2010-05-02
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
Comment
Question by:sopheak
  • 3
  • 2
  • 2
7 Comments
 
LVL 32

Expert Comment

by:bhess1
ID: 2667234
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
 

Author Comment

by:sopheak
ID: 2667238
How do I get frmMain to load in the background,(or hidden when it is loading)?
0
 
LVL 28

Expert Comment

by:Ark
ID: 2667244
Hi
frmMain.Load - load form (not display)
frmMain.Show - (display form. If not loaded then load it)
Cheers
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

 
LVL 32

Expert Comment

by:bhess1
ID: 2667248
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
 

Author Comment

by:sopheak
ID: 2667261
Ark

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

0
 
LVL 28

Accepted Solution

by:
Ark earned 50 total points
ID: 2667266
Sorry
You need
Load frmMain
Cheers
0
 

Author Comment

by:sopheak
ID: 2667276
thanks
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question