|
-
May 26th, 2003, 07:46 PM
#1
Thread Starter
Lively Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|