Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim SecondForm As New Form2 'new instance of second form
Me.Hide() 'hides first form
SecondForm.Show()
End Sub
Not sure why your trying to call your exit routine, but this is how you should use Me.Hide.