Thursday, February 27, 2014

need help!! please.. :'( Different User Accessing Different Form in C#



foreach (DataRow dr in ds.Tables[0].Rows)
{
if (dr["user"] == textBox1.Text) //right USER!!!
{
if (dr["password"] = textBox2.Text) //also password is right
return true;



Form3 fm3 = new Form3();
fm3
.Show(); // i need to add this? is it ok?




else
return false; //wrong password
}
}

No comments:

Post a Comment