Solved

Easy question

Posted on 2000-03-29
7
127 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 27

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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 27

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now