PC Review


Reply
Thread Tools Rate Thread

Validating Radio Buttons

 
 
Ron Green
Guest
Posts: n/a
 
      10th Dec 2003
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?
 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      10th Dec 2003
* "Ron Green" <(E-Mail Removed)> 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>
 
Reply With Quote
 
Ron Green
Guest
Posts: n/a
 
      10th Dec 2003
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" <(E-Mail Removed)>

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>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Option Buttons/Radio Buttons John Calder Microsoft Excel New Users 7 16th May 2008 04:51 AM
ASP.NET Reset Radio Button in a group of Radio Buttons Scott D Johnson Microsoft ASP .NET 1 28th Sep 2006 12:38 AM
Outlook 2007 - HTML radio buttons, submit buttons, text fields... =?Utf-8?B?bWlndWVsaXRvOTI4?= Microsoft Outlook Discussion 2 13th Sep 2006 09:20 PM
VBA: Disable Frame and Radio Buttons based on Another Radio Button Being True Mcasteel Microsoft Excel Worksheet Functions 2 29th Oct 2004 08:06 PM
Options Buttons, not Radio Buttons Bob Microsoft Access VBA Modules 1 30th Jul 2004 12:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:04 AM.