OleDbDataReader usdr=cmd.ExecuteReader();
if (num<=4)
{
if(usdr!=null )
{
if(usdr.Read())
{
if(usdr["password"].ToString()!=pwd)
{
num++;
MessageBox.Show("用户名和密码不相符");
sle_user.Focus();
MessageBox.Show(num.ToString());
}
else
{
this.Close();
}
}
usdr.Close(); }
}
else
{
;
}
//test.DisDbconnect();
//this.Close();
}
if (num<=4)
{
if(usdr!=null )
{
if(usdr.Read())
{
if(usdr["password"].ToString()!=pwd)
{
num++;
MessageBox.Show("用户名和密码不相符");
sle_user.Focus();
MessageBox.Show(num.ToString());
}
else
{
this.Close();
}
}
usdr.Close(); }
}
else
{
;
}
//test.DisDbconnect();
//this.Close();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货