H
Harry Simpson
I've got a Spalsh screen that loads first and enables a timer. I want to
wait a second then go to the main form and dispose of the Splash screen to
save memory - also to avoid having to close two forms on exit.
Seems like it is very hard to refer to another form in CF apps.....
The code below ends the entire application. If i try to reference Splash
form from the NewForm the application can't see it so therefore i can't call
its Close/Dispose method.
What am i missing here?
On the Splash forms code:
Private Sub Splash_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Timer1.Enabled = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
Dim NewForm As New Form1
NewForm.Show()
Me.Close()
End Sub
wait a second then go to the main form and dispose of the Splash screen to
save memory - also to avoid having to close two forms on exit.
Seems like it is very hard to refer to another form in CF apps.....
The code below ends the entire application. If i try to reference Splash
form from the NewForm the application can't see it so therefore i can't call
its Close/Dispose method.
What am i missing here?
On the Splash forms code:
Private Sub Splash_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Timer1.Enabled = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
Dim NewForm As New Form1
NewForm.Show()
Me.Close()
End Sub