VB6 Tutorial 62: Splash Screen

By | 2018-06-04

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.

Example

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

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
    frmMain.Show
    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.