寻找选择的RadioButton

bool select = false;
foreach (Control cl in flowLayoutPanel.Controls)
{
if (cl is RadioButton)
{
if (((RadioButton)cl).Checked)
{
MessageBox.Show("当前选择的是:" + cl.Name);
select = true;
break;
}
}
}
if (!select)
{
MessageBox.Show("请选择要删除的内容!", "系统提示:");
return;
}

你可能感兴趣的:(RadioButton)