MarkBad311
New member
I have been programing VB for some time now and I have done this in VB6 but I am using visual Studio now.
My Problem is I have a Splash screen and after a timers tick event I would like it to unload the splash screen and load the Main Form. I can't use .Hide because the tick event repeats and also the application doesn't close properly.
So to recap I have a splash screen and I want to load the main form and unload the splash form on the tick event. Here's the code that doesn't do what I want it to do
Me.Close closes the whole project. not just the intro form
My Problem is I have a Splash screen and after a timers tick event I would like it to unload the splash screen and load the Main Form. I can't use .Hide because the tick event repeats and also the application doesn't close properly.
So to recap I have a splash screen and I want to load the main form and unload the splash form on the tick event. Here's the code that doesn't do what I want it to do
VB.NET:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim myForm As New frmMain
Timer1.Enabled = False
myForm.Show()
Me.Close()
End Sub
Me.Close closes the whole project. not just the intro form