1,从父窗体向子窗体传值 // 从父窗体向子窗体传值 private void btnParent_click(object sender, EventArgs e){ //方法一 通过重写构造函数传值 重写子窗体的构造函数 // FrmChild chidl = new FrmChild(txtParent.Text); // child.ShowDialog(); // 方法二 通过公共变量传值,如果这个变量是在父窗体中声明的,那么需要时静态变量 // FrmChild chidl = new FrmChild(); // strValue = textParent.Text;