I have a "Exit" button on Form1. When I click this button I would like to close the existing Form and go to Form2. I have the following code in the button's click event, but it only closes the existing form, but do not go to Form2.
Private Sub Exitbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ReturnToMainbtn.Click
Me.Close()
mainMenu.Show()
End Sub
Is theres something wrong with this code? Thanks in advance
Private Sub Exitbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ReturnToMainbtn.Click
Me.Close()
mainMenu.Show()
End Sub
Is theres something wrong with this code? Thanks in advance