Results 1 to 3 of 3

Thread: Quick question about option button

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    5

    Quick question about option button

    How do I unclick all option buttons?

    When the program starts, all the option buttons are unclicked - but as soon as you click one, you can only change it, you can't erase the little bullet.
    I want to do it so that when I click a button, all the bullets are erased from the option button are clear, just like when you start the program.
    Thanks

  2. #2
    Fanatic Member vbasicgirl's Avatar
    Join Date
    Jan 2004
    Location
    Manchester, UK
    Posts
    1,016

    Re: Quick question about option button

    you need to make the value of the optionbutton to false. if you want to unselect them all you could make a control array of them and loop through them or something like this.
    VB Code:
    1. Dim ctr As Control
    2.  For Each ctr In Me.Controls
    3.   If TypeOf ctr Is OptionButton Then
    4.     ctr.Value = False
    5.   End If
    6.  Next ctr

    casey.

  3. #3

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