D
Davis
Hi, I have another question.
Again i have a main form which upon a button click loads another
form as below :
Private Sub B_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles B.Click
Dim frm As New Form1
frm.Show()
End Sub
In the second form when i exit i call Me.Hide ie i hide the form. When i return to the Main form
again and the button is clicked its creating another new form each time. What do i need to do to prevent
this.I just want to show my form again but the event handler for the button creates a new form each time.
Thanks
Again i have a main form which upon a button click loads another
form as below :
Private Sub B_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles B.Click
Dim frm As New Form1
frm.Show()
End Sub
In the second form when i exit i call Me.Hide ie i hide the form. When i return to the Main form
again and the button is clicked its creating another new form each time. What do i need to do to prevent
this.I just want to show my form again but the event handler for the button creates a new form each time.
Thanks