Re: independent RadioGroups?

Posted by webmaster Guido on May 24, 2007

In Reply to Can you make RadioGroups independent? posted by Lee Hallin p12462 on May 18, 2007

: Here's what I did:
: 1) Created RadioGroup1
: 2) Added a RadioButton1 to it
: 3) Created RadioGroup2
: 4) Added a RadioButton2 to it
: 5) When I run the program, if I click RadioButton1, it gets checked. If I click RadioButton2 it gets checked BUT RadioButton1 gets cleared!

Just a small clarification:

If you try to add a radiobutton to a RadioGroup by "dropping" a RadioButton component onto the RadioGroup, then the RadioButton doesn't belong to the RadioGroup.

Instead, you should add an item to the RadioButton's "Items" property, as described in Joey's answer :)

Related articles


Follow Ups