VB6 Tutorial 62: Splash Screen

Posted On 2018-06-04 by VB6Boy
Keywords: visual,basic,vb6,visualbasic,tutorial,basic,beginner
Tags: VB6 Tutorials 
Views: 28

Looking for the more of the VB6 Tutorial? Here is the tutorial index.

You can use splash-screen in your windows app to make the program more attractive. The splash screen is a form template which you should set to appear before the main window or the actual program appears.

This screen only stays for some second showing the company name, logo, product name, product version, copyright information and some other information.


This is an example splash screen created using the template that comes with VB6.

splash screen sample

How to make a splash screen

You can choose from the default template. Go to Project >Add Form from the menu bar and select splash screen. Then modify the form as per your needs.

The other way is, add a form to your existing project. Set the BorderStyle property to None. Then edit the form according to your choice.

Working with the splash screen

Take a timer on the splash screen form. Set the interval to some seconds, for example 3 seconds. Then you need to set the Timer's Interval property to 3000.

Write the following code in the Timer's Timer Event. Suppose the form you want to load after the splash screen is frmMain.

Private Sub Timer1_Timer()
    Timer1.Enabled = False
    Unload Me
End Sub

On executing the code, the splash screen stays for 3 seconds and then the Main Window is shown after the splash form is unloaded.

Looking for the more of the VB6 Tutorial? Here is the tutorial index.

About the Author

has posted a total of 101 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Code Links