第1个回答 2010-05-12
form3中new form2 和new FORM1
在form2中写一个带有返回值的text1的值。
在form1中写一个带有返回值的radiobutton2的值。
最后在form中直接调用此两个form中的方法得到返回值赋予两个label.即可
参考代码:
form1:
public bool radioButton()
{
bool a = false;
if (radioButton1.Checked == true)
{
a = radioButton1.Checked;
}
else if (radioButton2.Checked == true)
{
a = radioButton2.Checked;
}
return a;
}
form2:
public string textBox()
{
return textBox1.Text;
}
form3:
private void Form3_Load(object sender, EventArgs e)
{
Form1 form1 = new Form1();
Form2 form2 = new Form2();
label1.Text = form1.radioButton().ToString();
label2.Text = form2.textBox();
}本回答被网友采纳