PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Validating Radio Buttons
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Validating Radio Buttons
![]() |
Validating Radio Buttons |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
* "Ron Green" <anonymous@discussions.microsoft.com> scripsit:
> 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? -- Herfried K. Wagner [MVP] <http://www.mvps.org/dotnet> |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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. >-----Original Message----- >* "Ron Green" <anonymous@discussions.microsoft.com> scripsit: >> 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? > >-- >Herfried K. Wagner [MVP] ><http://www.mvps.org/dotnet> >. > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

