Question about showing and hiding forms
Okay this might seem kind of a dumb question, but i cant seem to figure it out...
i have this code in form 1:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Form2 As New Form2()
Form2.Show()
End Sub
and this code in form 2:
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim form1 As New Form1()
form1.Hide()
End Sub
The problem is that Form2 will show, but it will not hide form1 when it loads, what can i do to fix this, i have tried everything i can think of.
:confused: