Get all RadioButtons
and iterate over the list to get the Checked
one:
foreach (RadioButton rBtn in this.Controls.OfType<RadioButton>())
{
if(rBtn.Checked)
{
label2.Text = "Installation location:'" + rBtn.Text;
break;
}
}
1
solved C#: How to check all Radio Button’s on forms