|
-
Jun 14th, 2000, 02:51 PM
#1
Thread Starter
Member
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!
Please Visit My WebCam!!
http://www.hmcheung.com
-
Jun 14th, 2000, 02:58 PM
#2
Lively Member
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
Some cause happiness wherever they go; others, whenever they go.
-
Jun 14th, 2000, 03:02 PM
#3
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.
_____________
-
Jun 14th, 2000, 03:20 PM
#4
Frenzied Member
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.
'Buzby'
Visual Basic Developer
"I'm moving to Theory. Everything works there."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|