tags:

views:

1005

answers:

3

I know that WebForms has a RadioButtonList control, but I can't find one for WinForms. What I need is to have 3 RadioButtons grouped together, so that only 1 can be selected at a time. I'm finding that I have to do this through code, which is a pain. Am I just not seeing RadioButtonList somewhere, or does it really not exist in WinForms?

+3  A: 

Apparently not.

You can group three RadioButtons together using a GroupBox or a Panel as is done here.

Matthew Jones
Weird, I was grouping them in a GroupBox but I thought it wasn't working. Thank you!
Rorschach
+1  A: 

The simple fact that several radio buttons are in the same container makes them mutually exclusive, you don't have to code this behavior yourself. Just put them in a Panel or GroupBox as suggested by Matthew

Thomas Levesque
A: 

how do you create the radiobuttonlist at runtime? ie databind a list from a database. How do you render the list to flow horizontally?

rygar