Hi all, I am trying to uncheck the currently checked radiobutton in a groupbox with 6 radiobuttons. I have this:
VB Code:
  1. Dim RB As RadioButton
  2.         For Each RB In GroupBox4.Controls
  3.             RB.Checked = False
  4.         Next
I get "Specified cast is not valid" in line "For Each RB In GroupBox4.Controls". What am I doing wrong, the editor isn't showing any errors.