2 selected Radio buttons in a Group

L

lakepeir

Hello,

I have 4 radio buttons in a groupbox on a form. When I run the
application, I would like to only select one radio button, but I can
select one radio button from the first three radion buttons and the
last radio button. It appears that the last radio button is not
grouped with the others although I have them all in the same groupbox.
Please help. Thanks.
 
J

JimmyKoolPantz

All RadioButton Controls in a container control (suchas, a groupbox
control) are exclusive of each other. That means, if one RadioButton
control is selected, the others will be deselected.

My advice would be to remove the radioButton controls, and remove the
container control from your application and then replace them, making
sure that all the radioButtons are placed in the Groupbox container
control.
 
L

lakepeir

Thanks. It worked!
JimmyKoolPantz said:
All RadioButton Controls in a container control (suchas, a groupbox
control) are exclusive of each other. That means, if one RadioButton
control is selected, the others will be deselected.

My advice would be to remove the radioButton controls, and remove the
container control from your application and then replace them, making
sure that all the radioButtons are placed in the Groupbox container
control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top