How can we use the database objects from one form to another?

JCel

Active member
Joined
Jun 15, 2009
Messages
30
Programming Experience
Beginner
How can we use the database objects from one form to another?


Eg. In my Login form a person enters his user-name and password & if it is correct, the code directs him to another form(Form2). Now in Form2 How will I get which person has entered in?

Regards,
JCel.T
 
Here are sample of codes.


VB.NET:
if tbxusername.text = "username"
if tbxpassword.text = "password"
dim FrmForm2 as new FrmForm2
FrmForm2.username = tbxusername.text 'at your form 2 , set a public parameter
FrmForm2.password = tbxpassword.text 'at your form 2 , set a public parameter
FrmForm2.show()
end if
end if
 
Back
Top