将form2的值传到form1,记得修改label1为共有
单选框
多选框
分组
private void ModifyFont()
{
foreach(var ctr in grpFont.Controls)//返回控件
{
if(ctr is RadioButton)
{
if ((ctr as RadioButton).Checked)
{
(this.Owner as Form1).Font=new Font((ctr as RadioButton).Text,12);
break;
}
}
}
}