Hi, I've got a beginner problem , I've a login form which is opened whit form.show(), which validate the user and password into a database, however, when I click OK button, if every think match ok, it should close this form and open a new one.
However always when I use form.close() it close both forms, the first one that I want to close and the new one that I want to open.
I've putted on
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
.......
form1.close()
form2.show()
==================================
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
form1.close()
On both routines both forms are closed.
Can someone help me please
Thanks
However always when I use form.close() it close both forms, the first one that I want to close and the new one that I want to open.
I've putted on
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
.......
form1.close()
form2.show()
==================================
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
form1.close()
On both routines both forms are closed.
Can someone help me please
Thanks