0
這是選擇用戶密碼的代碼,其中id = 1;我想將此值與文本框匹配。如果該值匹配,則第二個窗口窗體將打開。但它不工作...如何使用c將表值與文本框值相匹配#
OleDbConnection con = new OleDbConnection(database2.conn);
con.Open();
OleDbCommand OCom = new OleDbCommand("select user_pasword from tblpasword where id = 1", con);
OleDbDataReader Dreader = OCom.ExecuteReader();
while (Dreader.Read())
{
MessageBox.Show(Dreader + "");
}