if (rowCount == 1) //若查得所输用户号相应的1行记录;
{
MessageBox.Show("登录成功。");
frm_hospitaladmin frm_hospitaladmin = new frm_hospitaladmin ();
frm_hospitaladmin.Show();//显示正确提示;
}
else //否则;
{
MessageBox.Show("用户号/密码有误,请重新输入!");
}
frm_hospitaladmin frm_hospitaladmin = new frm_hospitaladmin ();这一行一直显示错误
public frm_hospitaladmin()
{
InitializeComponent();
}