Hello, I had a Vb6.0 app which showed a main form. This form showed another form to login. When you clicked the "Cancel" Button in the login form, this form closed itself and the main form.
Private Sub b_Cancel_Click()
Unload f_Login
Unload f_Main
End Sub
Now, I have to do this app with VB.net and it seems that the "Unload" method doesn't work.
I tried
Private Sub b_cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b_cancel.Click
Me.Close()
f_Main.ActiveForm().Close()
End Sub
But it only closes the "Login form".
Please, how can i close the "f_Main form" in vb.net from the "f_Login" form????
Private Sub b_Cancel_Click()
Unload f_Login
Unload f_Main
End Sub
Now, I have to do this app with VB.net and it seems that the "Unload" method doesn't work.
I tried
Private Sub b_cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b_cancel.Click
Me.Close()
f_Main.ActiveForm().Close()
End Sub
But it only closes the "Login form".
Please, how can i close the "f_Main form" in vb.net from the "f_Login" form????