birthjay
Feb 11th, 2005, 01:24 PM
Hello,
I have this code that works for checking just one RadioButton to see if it is checked when looping through a group of RadioButtons. How can I check ALL of the RadioButtons?
foreach(Control EnumControl in this.Frame1.Controls)
{
if (EnumControl.GetType().Equals(typeof(RadioButton)))
{
if (optCommand0.Checked == true) //What do I do here to check ALL RadioButtons?
{
MessageBox.Show("I'm Here");
break;
}
}
}
I have this code that works for checking just one RadioButton to see if it is checked when looping through a group of RadioButtons. How can I check ALL of the RadioButtons?
foreach(Control EnumControl in this.Frame1.Controls)
{
if (EnumControl.GetType().Equals(typeof(RadioButton)))
{
if (optCommand0.Checked == true) //What do I do here to check ALL RadioButtons?
{
MessageBox.Show("I'm Here");
break;
}
}
}