解决方案 »

  1.   

      txtName.Text = "";
                    txtAddress.Text = "";
                    txtState.Text = "";
                    txtCountry.Text = "";
                    cbDesignation.Text = "";
                    cbDepartment.Text = "";
    都是空值,如果是初始化,不要放这里面
      

  2.   

    谁能教我在add按钮中怎么改啊,我知道错误的原因,但不会改
      

  3.   

        
    换个位置试试
     catch(Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
    txtName.Text = "";
                    txtAddress.Text = "";
                    txtState.Text = "";
                    txtCountry.Text = "";
                    cbDesignation.Text = "";
                    cbDepartment.Text = "";