This Tutorial will teach you how to add a splash screen to your project. I will explain two ways to do it, and easy way and a not as easy way. The easy way will have it so you have to click a button for the Main for to load and the not as easy way will have the Splash Screen Fade in and then out.
First open up Visual basic 6, and click Standard EXE.
EASY WAY:
Go to Project -> Add Form. Select Form.
Add a Command Button to the form, and in the Command1_Click() function add the following code:
You need to make sure that the form with the Command button is the form that loads first.
NOT AS EASY WAY:
Go to Project -> Add form and select Splash Screen.
Double click on the frmSplash form to view the code. Delete all the code and put in the following:

Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function timeGetTime Lib "winmm.dll" () As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Function SetWindowTransparency(hwnd As Long, Value As Long)
SetWindowLong hwnd, -20, GetWindowLong(hwnd, -20) Or &H80000
SetLayeredWindowAttributes hwnd, 0, Value, &H2
End Function
Private Sub Wait(ByVal ms As Long)
ms = timeGetTime() + ms
Do: DoEvents: Loop While ms > timeGetTime()
End Sub
Private Sub Form_Load()
Dim i As Long
SetWindowTransparency Me.hwnd, 0
Me.Show
DoEvents
For i = 0 To 250 Step 10
SetWindowTransparency Me.hwnd, i
Wait 50
Next i
Wait 2000
For i = 250 To 0 Step -10
SetWindowTransparency Me.hwnd, i
Wait 50
Next i
form1.show
Unload Me
End Sub
Change the green to the name of the frame you want to load after the Splash Screen has loaded.
Most of you are probably confused by the code, but don't worry, all it basically is saying is Load frmSplash, by fading in, and then out, and then after it has faded out close frmSplash and then load the main frame.
Now you need to set the priorities of what form is going to load first, otherwise the frmSplash form will not load and you won't have a Splash Screen.
To do this go to Project -> Project1 Properties and under the General tab you will see a spot that says 'Start up Object' and a drop down menu below it. You need to choose frmSplash as the start up Object. Then hit OK.
Now test it. If it doesn't work go through and read the Tutorial again. If it still doesn't work post and I can help you.
Hopefully you all enjoyed this awesome tutorial by me. :P