View Single Post
  #7 (permalink)  
Old June 3rd, 2004, 04:05 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Are you using Visual Studio .NET? Then try this:

1. Drop a Radiobutton control on your form.
2. Make sure it's selected and then press F1.
3. You'll get a list will all members of the RadioButton class.
4. At the top of the page, follow the RadioButton overview link and you'll see this:
Quote:
quote:When the user selects one radio button within a group, the others clear automatically. All RadioButton controls in a given container, such as a Form, constitute a group. To create multiple groups on one form, place each group in its own container, such as a GroupBox or Panel control.
And there you have it. Just add some other containers like Panels on your form. Drag the Radiobuttons into the panel, so all Radiobuttons inside that panel will act as one group. Multiple panels means multiple groups.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.