“WindowsFormsApplication1.Form1”不包含采取“0”参数的构造函数

“WindowsFormsApplication1.Form1”不包含采用“0”参数的构造函数
本帖最后由 cym455351784 于 2014-10-09 15:44:23 编辑
在做两个窗口传值时出现的错误,求大神救命!
红色的就是我做的传值部分代码
这是子窗口代码
   namespace WindowsFormsApplication1
{
    public partial class Form2 : Form
    {
        MySqlDataAdapter da;
        string sql;
        DataTable dt;
        MySqlDataReader dr;
        MySqlCommand cmd;
        MySqlConnection myConn = new MySqlConnection("server=localhost;user id=root; password=root; database=employee; pooling=false;port=3306");
        
        public Form2()
        {
            InitializeComponent();

        }

        private void button3_Click(object sender, EventArgs e)
        {

        }

        public void button5_Click(object sender, EventArgs e)
        {
            if (this.DZ.Text == "")
            {
                //弹提示信息"用户名能空!"
                MessageBox.Show("IP地址不能为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                this.DZ.Focus();//使用户名文本框获焦点
                return;//跳
            }
            if (this.SJK.Text == "")
            {
                //弹提示信息"用户名能空!"
                MessageBox.Show("数据库不能为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                this.SJK.Focus();//使用户名文本框获焦点
                return;//跳
            }
            if (this.YH.Text == "")
            {
                //弹提示信息"用户名能空!"
                MessageBox.Show("用户名不能为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                this.YH.Focus();//使用户名文本框获焦点
                return;//跳
            }
            if (this.MM.Text == "")
            {
                //弹提示信息"用户名能空!"
                MessageBox.Show("密码不能为空!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                this.MM.Focus();//使用户名文本框获焦点
                return;//跳
            }


            Form1 frm1 = new Form1(DZ, SJK, YH, MM);


            this.Hide();
            frm1.ShowDialog();
          
            this.Close();


            
        }

        private void DZ_TextChanged(object sender, EventArgs e)
        {

        }