Results 1 to 8 of 8

Thread: [RESOLVED] Combobox/optionbutton

Hybrid View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Holland ook wel Nederland
    Posts
    151

    Re: Combobox/optionbutton

    I don't know how that's the problem :$

  2. #2
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Combobox/optionbutton

    you need a Checkbox for that purpose because if you have only one option button then you cannot disable the combo again. try this:
    VB Code:
    1. Private Sub Form_Load()
    2.     Combo1.Enabled = False
    3. End Sub
    4.  
    5. Private Sub Check1_Click()
    6.     If Check1.Value Then
    7.         Combo1.Enabled = True
    8.     Else
    9.         Combo1.Enabled = False
    10.     End If
    11. End Sub
    if you still want to use an option button, and you only have Option button and the combobox on your form, then put the option button within another container like PictureBox or Frame and in the above mentioned code, replace Check with Option.

    Harsh Gupta.
    Show Appreciation. Rate Posts.

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