I am new to programming. I made a program and now want to include a splash screen. After reading and searching forums, I determined that I should use a splash screen via a Module and Sub Main. My code makes sense to me, but obviously I'm missing some things.
Here is my code for the Module:
vb/
Module Module1
Sub Main()
Dim splash As New FormSplash()
splash.Show()
End Sub
End Module
/vb
Here is my code for the splash screen form:
vb/
Private Sub FormSplash_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Timer1.Stop()
Dim f As New Form1()
f.Show()
Me.Close()
End Sub
/vb
Timer1 is set at an interval of 3000 in the properties box.
Thanks for any help.
Here is my code for the Module:
vb/
Module Module1
Sub Main()
Dim splash As New FormSplash()
splash.Show()
End Sub
End Module
/vb
Here is my code for the splash screen form:
vb/
Private Sub FormSplash_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Timer1.Stop()
Dim f As New Form1()
f.Show()
Me.Close()
End Sub
/vb
Timer1 is set at an interval of 3000 in the properties box.
Thanks for any help.