How to configure autofill option for ComboBox.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Chandan Kr Sah
    New Member
    • Aug 2010
    • 11

    How to configure autofill option for ComboBox.

    eg: on entering a character/characters it should list out (shorten) all the items with the character/characters accordingly.The list should be visible to the user.
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    This is standard behavior for a Combobox when the AutoExpand Property is set to Yes, which is the default for this property.

    Welcome to Bytes!

    Linw ;0)>

    Comment

    • missinglinq
      Recognized Expert Specialist
      • Nov 2006
      • 3533

      #3
      To have the items show, have the combobox drop down when the user enters it, using code like this:

      Code:
      Private Sub ComboBoxName_GotFocus()
       ComboBoxName.Dropdown
      End Sub
      And in the future, please don't send followup questions by PMs to members who have responded to your thread. It violates the rules of the forum and it precludes other members helping you. Simply add another post to your thread.

      Linq ;0)>

      Comment

      • Chandan Kr Sah
        New Member
        • Aug 2010
        • 11

        #4
        Thanks for help, I got the solution

        I got the solution but I coded as,

        Private Sub cmbCountry_KeyP ress(KeyAscii As Integer)
        cmbCountry.Drop down
        End Sub

        And set to Auto Expand option to True.

        Comment

        Working...