不明白你的意思。
是这样吗?
if(radioButton1.Checked)
{
//
}
else
{
}
要不就遍历groupBox1吗?
foreach(Control c in groupBox1.Controls)
{
if(c is RadioButton)
{
if(((RadioButton)c).Checked)
{
MessageBox.Show(c.Name);
}
}
}
是这样吗?
if(radioButton1.Checked)
{
//
}
else
{
}
要不就遍历groupBox1吗?
foreach(Control c in groupBox1.Controls)
{
if(c is RadioButton)
{
if(((RadioButton)c).Checked)
{
MessageBox.Show(c.Name);
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货