I am using a splash screen with a button on it. When the user presses the button, the splash screen hides itself and shows the main program form. When I close this form, I want to also make sure the hidden splash screen closes. Here is the code I am using to hide the splash form and open form1:
Now if I try the following code from within Form1, it closes everything (including Form1):
So the question is when and how to close that hidden main splash form.
TIA,
-+{John Vogel}+-
Code:
Dim other As New Form1()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
other.Show()
Me.Hide()
End Sub
Now if I try the following code from within Form1, it closes everything (including Form1):
Code:
Dim SplashForm As New Splash()
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
SplashForm.Close()
End Sub
So the question is when and how to close that hidden main splash form.
TIA,
-+{John Vogel}+-