Hi~~

try to switch between different forms in my code, but how do I close my first form once I open the second form?

the following is my code, can anyone tell me where I did wrong?


Private Sub btnForm2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnForm2.Click
Dim frmForm2 As New frmForm2()
Dim frmForm1 As New frmForm1()


frmForm2.Show()
frmForm1.Hide()
End Sub

Thank you for your help .