Reset Combo Box? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Reset Combo Box?

ReiderReider Posts: 36Member
If I choose to hide a combo box and then when a command button is clicked the combo box appears again how do I get the combo box to be blank and not show whatever was selected before I hid it?

Reider

Comments

  • KhalilDutchKhalilDutch Posts: 74Member
    : If I choose to hide a combo box and then when a command button is clicked the combo box appears again how do I get the combo box to be blank and not show whatever was selected before I hid it?
    :
    : Reider
    :

    [code]
    Private Sub Command1_Click()

    Combo1.Visible = True
    Combo1.Clear
    Combo1.Refresh

    End Sub
    [/code]

    Hope this helps!

    --KhalilDutch--


    ___________________________
    If ... Then
    ...
    Else
    ...
    Whatever....

  • ReiderReider Posts: 36Member
    Lol, well it did help yes, thank you.

    Just a little too late to put it in my assignment in time!!

    Nevermind thanks anyway!
  • KhalilDutchKhalilDutch Posts: 74Member
    : Lol, well it did help yes, thank you.
    :
    : Just a little too late to put it in my assignment in time!!
    :
    : Nevermind thanks anyway!
    :
    It's never too late to learn! ;-)
Sign In or Register to comment.