急啊!关于两窗体间数据传递问题
我用的SET GET方法可是就是无法从主窗体传到子窗体主窗体: private string strValueA;
public string StrValueA
{ get { return strValueA; }
set { strValueA =value ; }
}
ChildForm child = new Childform();
child.ShowDialog(this);
child.Dispose();
this.strValueA = txtID.Text;
子窗体: Form1 f1=new Form1 ();
f1 = (Form1)this.Owner;
textBox1.Text = f1.StrValueA;