Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connecting two forms in visual basic

Status
Not open for further replies.

anuradha5

MIS
Mar 5, 2003
10
IN
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.

HTH
Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top