How to Add a Splash-Screen to Your VB6 Project


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:

splash screen form template

  

How to make a splash screen

  1. 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. 
  2. 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

  1. 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. 
  2. 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.