hello,
I'm using VB6. I've got 5 option buttons in a form. What should I do so that the user can only take one option at a time? i.e. the other four options will automatically uncheck when user checked one option. Thanks!
Printable View
hello,
I'm using VB6. I've got 5 option buttons in a form. What should I do so that the user can only take one option at a time? i.e. the other four options will automatically uncheck when user checked one option. Thanks!
They all need to be a control array - click the first one and then click "copy", click the form then click "paste". When prompted, click "yes" to create a control array. They will all have the same name, but the first will be called (e.g.) Option1(0), the second Option1(1), etc..
HTH,
Toot
Hi!
As far as I know the OptionButtons are automatically unchecked when they are in the same container (e.g. Form)
If it doesn't work I'd be curious to see a code-sample.
_____________
I hope you are using Option (Radio) Buttons (the round ones) and not Checkboxes (the square ones) - if you are then you can only pick on option at once.