Results 1 to 4 of 4

Thread: Option (Radio) buttons

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Hong Kong
    Posts
    62

    Question

    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

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    81
    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.

  3. #3
    Guest
    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.

    _____________

  4. #4
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    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
  •  



Click Here to Expand Forum to Full Width