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

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.