Grouping Option Button controls in a Document

C

Caroline

I have lots of option button controls in one document.
(Added using the Controls toolbox.)
Cannot find out how to specify which option buttons are
in a group/how they are grouped, so that only one button
in each group can be selected.
Currently things are a mess - either all buttons seem to
be in one big group, or every one can be selected.

Any help appreciated.

Thanks
 
P

Peter Hewett

Hi Caroline

There's a number of ways of tackling this. You can group the OptionButton
controls using a Frame or MultiPage control. If you use a Frame it does not
have to be visible! The other way you can group OptionButton controls is to
set their GroupName property.

Say you have 6 OptionButton controls on your Form. To group them into say a
group of 4 and a group of 2 you would do the following:

Set the groupname of the 4 OptionButton controls to "Group1" and set the
groupname of the 2 OptionButton controls to "Group2".

HTH + Cheers - Peter
 
G

Guest

Sorry - I did search and couldn't find
Just found the GroupName property which I can use
 

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