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 "Add Form" dialog you can select the "Splash Screen" 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>
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=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.