i am doing a project in visual basic and i am not getting how to link two forms ie when i am successful in logging in first form the control should go on to the next form
Anuradha ...
It is very simple ...
On your Main form (frmSignIn) whatever control you are using to run the validate code, just put something like this
Private Sub Command1_Click()
Load Form2 'Loads form to memory
Unload Me 'Unloads form 1 to clear memory
Form2.Show 'Makes form 2 visible
End Sub
You could also use the Hide method on form 1, but since it is a log-in form, unload is better.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.