Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

Do I need to use GroupBox to separate groups of radio buttons on Win form?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ronald S. Cook - 26 Feb 2008 02:58 GMT
Do multiple sets of radio buttons on a form have to be "separated" via group
boxes?

I remember there used to be a "group" property on radio buttons but I guess
not anymore.

I just don't really want to use a GroupBox control if I don't have to
(although I could make it's border color the same as the form background I
suppose).

Thanks,
Ron
Peter Duniho - 26 Feb 2008 03:32 GMT
> Do multiple sets of radio buttons on a form have to be "separated" via  
> group boxes?
>
> I remember there used to be a "group" property on radio buttons but I  
> guess not anymore.

The default behavior, if I recall correctly, is that radio buttons grouped  
within any container control operate together.  If you like, you can use a  
Panel or even a UserControl, neither of which have any visual behavior by  
default, to group radio buttons invisibly.

Of course, you could always just link the group buttons by appropriate  
event handlers that do the right thing, deselecting the other buttons in a  
group when a particular button is selected.

Pete

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.