Validating Radio Buttons

  • Thread starter Thread starter Ron Green
  • Start date Start date
R

Ron Green

I have two radio buttons contained by a groupbox in a
winform. I need to make sure that the user selects one of
the radio buttons before hitting submit. Since the radio
buttons are two separate controls and the groupbox cannot
recieve focus, how do I fire the validaing event so that
the errorprovider will warn the user to select one?
 
* "Ron Green said:
I have two radio buttons contained by a groupbox in a
winform. I need to make sure that the user selects one of
the radio buttons before hitting submit. Since the radio
buttons are two separate controls and the groupbox cannot
recieve focus, how do I fire the validaing event so that
the errorprovider will warn the user to select one?

Are you sure you are talking about Windows Forms? Why not preselect one
of the buttons?
 
I'm trying to avoid setting a default. There really is no
default which means it would have at least a 50% chance
being wrong.
 
Back
Top