Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 760
  • Last Modified:

Combo Box and vb.net

How do i make the combobox dropdown list collapse upon user input. For example when the user clicks and input something in the text area for combo box, i want the drop down list within the combo box to collapse to show the already included items.


0
janjuama84
Asked:
janjuama84
  • 2
1 Solution
 
Kinger247Commented:
could try :

   Private Sub ComboBox1_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.GotFocus
        ComboBox1.DroppedDown = True
    End Sub
0
 
aprestoCommented:
private void comboBox_TextChanged(object sender, EventArgs e)
        {
            cb.DroppedDown = true;
        }

thats the c# for it anyway for when you enter text
0
 
aprestoCommented:
please disregard my comment - apologies Kinger, didnt think to refresh :o)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now