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?


VB Code:
  1. foreach(Control EnumControl in this.Frame1.Controls)
  2. {
  3. if (EnumControl.GetType().Equals(typeof(RadioButton)))
  4. {
  5. if (optCommand0.Checked == true) //What do I do here to check ALL RadioButtons?
  6. {                  
  7. MessageBox.Show("I'm Here");
  8. break;
  9. }
  10. }
  11. }