- 父窗体
Form1_1 f11 = new Form1_1();
f11.Show(this);
- 子窗体
Form1 f1 = (Form1)this.Owner;
f1.KCount = Convert.ToInt16(textBox1.Text);
f1.KMaxN = Convert.ToInt16(textBox3.Text);
f1.KPerc = Convert.ToInt16(textBox2.Text);
f1.Close();
this.Hide();
Form1_1 f11 = new Form1_1();
f11.Show(this);
Form1 f1 = (Form1)this.Owner;
f1.KCount = Convert.ToInt16(textBox1.Text);
f1.KMaxN = Convert.ToInt16(textBox3.Text);
f1.KPerc = Convert.ToInt16(textBox2.Text);
f1.Close();
this.Hide();