N
Newbie!
Hi Group,
Sorry I know this has probably been asked loads of time, and sorry also for
my stupidity (Im a Newbie!) but ......
I have a Main Form with a button on it. When a user Clicks on the Button I
want it to Open Form2 and Close Form one but for the life of me I carn`t
find out where to do it.
I have the following Code to bring up a Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim Form1 As New Form1()
Form1.Show()
End Sub
I`ve Also Tryed
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim Form1 As New Form1()
Form1.Show()
Me.Close
End Sub
But this opens up Form2 and close`s it again straight Away.
I`ve also tryed Form1.ShowDialog() but that dosn`t seem to help either?
Any bosy got any suggestions on Links?
Ta
Si
Sorry I know this has probably been asked loads of time, and sorry also for
my stupidity (Im a Newbie!) but ......
I have a Main Form with a button on it. When a user Clicks on the Button I
want it to Open Form2 and Close Form one but for the life of me I carn`t
find out where to do it.
I have the following Code to bring up a Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim Form1 As New Form1()
Form1.Show()
End Sub
I`ve Also Tryed
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim Form1 As New Form1()
Form1.Show()
Me.Close
End Sub
But this opens up Form2 and close`s it again straight Away.
I`ve also tryed Form1.ShowDialog() but that dosn`t seem to help either?
Any bosy got any suggestions on Links?
Ta
Si