当前位置:编程学习 > C#/ASP.NET >>

checkInpute(): 没有找到适合的方法来重写

错误 1 “zhy.his.Forms.xtgl.Frm_Operator1.checkInpute()”: 没有找到适合的方法来重写
      protected override bool checkInpute()
          
        {
            if (txt_BianHao.Text.Trim() == "")
            {
                MessageBox.Show("请输入编号!");
                txt_BianHao.Focus();
                return false;
            }
            if (txt_Name.Text.Trim() == "")
            {
                MessageBox.Show("请输入姓名!");
                txt_Name.Focus();
                return false;
            }
            if (txt_PassWord.Text.Trim() == "")
            {
                MessageBox.Show("请输入密码!");
                txt_PassWord.Focus();
                return false;
            }
          
            else
            {
                if (txt_PassWord.Text == "*")
                {
                    if(MessageBox.Show("是否将密码设置为 * ?","提示",MessageBoxButtons.YesNo,MessageBoxIcon.Question,MessageBoxDefaultButton.Button2) == DialogResult.No)
                    {
                        txt_PassWord.Focus();
                        txt_PassWord.SelectAll();
                        return false;
                    }
                }             
               
            }
            return true;
            //return base.checkInpute();
        } --------------------编程问答-------------------- 不说的是什么?
补充:.NET技术 ,  C#
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,