Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Splash Screen

Status
Not open for further replies.

SarahCPS

Programmer
Feb 17, 2000
3
US
I created an app in vb6 and i would like a splash screen to open up as it loads. <br>
<br>
I'm new to this, so i would appreciate some assistance on how to get the screen up and running<br>
<br>
<br>
thanks
 
Sarah,<br>
<br>
You can do this several different ways.<br>
<br>
Whan you add a new form to your project, in the &quot;Add Form&quot; dialog you can select the &quot;Splash Screen&quot; template and then click open. This will create a splash screen form for you in your project.<br>
<br>
-- OR --<br>
<br>
You can create your own splash screen form by using one of the Microsoft splash screens as a guide.<br>
<br>
Either way is fine. Usually, I like to add a timer control to the form and set it to approx 3 seconds. On the timer event, close the splash screen form and show your main form.<br>
<br>
You'll need to open the splash screen form from either your Sub Main() or set the splash screen form as the startup form in your project properties. Let me know if you have any problems or questions.<br>
<br>
Hope this helps. :)<br>
<br>
Kenneth W. Cronin
 
Thanks for the info. <br>
<br>
I would also like to use a timer so that the screen automatically disappears once the project has finished loading. I have an idea, but I'd appreciate any pointers.<br>
<br>
Thanks<br>

 
Instead of using a timer, why not unload the form in the last step of the main forms load process?<br>
<br>
Wally Wojciechowski
 
Sarah,<br>
<br>
Wallyw is right. You probably should display the splash screen at the beginning of your Sub Main() function, then close it after the last step of code is processed, right before you show your main form.<br>
<br>
However, if you find that your code only takes a second to process and you wish to keep your splash screen up for a longer period of time, then I would suggest adding a timer to the splash screen form as well, for good measure.<br>
<br>
This is also helpful when running your app on a PC with a much faster processor that can just whip right through your Sub Main() function. You wouldn't want your splash screen to just show up as a small blip on someone's screen.<br>
<br>
Keep up the good work. :) <p>Kenneth W. Cronin, MCP<br><a href=mailto:kcronin@atdsystems.com>kcronin@atdsystems.com</a><br><a href= Systems Corporation</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top