if (textBox1 .Text= "" || textBox2 .Text= "" ||textBox3 .Text = "" || textBox4 .Text = "")
             {
                MessageBox.Show("error");
            
             }
            string a = this.textBox1.Text.Trim();
            string b = this.textBox2.Text.Trim();
            string c = this.textBox4.Text.Trim();
            string d = this.textBox5.Text.Trim();
         
            int  result = a.GetHashCode() + b.GetHashCode()+c.GetHashCode ()+d.GetHashCode ();
            if (result % 1 == 0)

解决方案 »

  1.   

    if (textBox1 .Text= "" || textBox2 .Text= "" ||textBox3 .Text = "" || textBox4 .Text = "") 
    为什么这句错了啊
      

  2.   

    if (textBox1 .Text= "" || textBox2 .Text= "" ||textBox3 .Text = "" || textBox4 .Text = "") 
                { 
                    MessageBox.Show("error"); 
                    return; //终止一下
                } 
    你错误在什么地方?是不是没有实例textBox?
      

  3.   

    if (textBox1 .Text== "" || textBox2 .Text== "" ||textBox3 .Text == "" || textBox4 .Text == "")