combo box: (drop down method)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lee123
    Contributor
    • Feb 2007
    • 556

    combo box: (drop down method)

    i have a form i am making. it's for my work, it has to do with mats that we rent out with these mats they are all logo mats that goes in this beehive in each section there is 69 holes i have made them A - L each rt driver has his own section in my form i have made something that looks like the beehive and i have placed several lables and a few text boxes i have a combo box that holds the mat names so when a user wants to find a mat he can drop down the combo box and click on it.

    But the only problem is that this is time consuming because there are hundreds of logo mats to look for. the form i made darkens the hole where the mat is in the beehive and the section it's in like:( "A".)

    Question:

    i want to know if the user can enter in a few letter of the logo mat and the combo box will open and go right to that mat so he doesn't have to scroll through the list


    lee123
  • lee123
    Contributor
    • Feb 2007
    • 556

    #2
    well im not awake yet. the visual basic im using is vb6

    lee123

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      I do remember reading about a method of doing this, years ago. Give me a day or two to dig it up.

      (Feel free to post a reminder here from time to time, as I'm pretty busy and it may get buried under other work.)

      Comment

      • QVeen72
        Recognized Expert Top Contributor
        • Oct 2006
        • 1445

        #4
        Hi,

        Make the "Sorted" property of the ComboBox = True,
        After typing in few letters(continu osly), the Pointer /Selected Item moves if the typed letters match..

        Not very sure if you are looking for something else...

        Regards
        Veena

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          I thought it only jumped to ones starting with the letter pressed. Perhaps I'm confusing it with the listbox.

          Comment

          • QVeen72
            Recognized Expert Top Contributor
            • Oct 2006
            • 1445

            #6
            Hi Killer,

            Make Sorted = True
            Type few letters Continuosly, it will go and Stand there..
            Same Logic Applies for the ListBox also..


            Regards
            Veena

            Comment

            • lee123
              Contributor
              • Feb 2007
              • 556

              #7
              will this open the combo box automaticlly when entering the word.

              lee123

              Comment

              • QVeen72
                Recognized Expert Top Contributor
                • Oct 2006
                • 1445

                #8
                Hi,

                To automatically open ComboBox, Write this code in Combo's Gotfocus event:

                [code=vb]
                Private Sub Combo1_GotFocus ()
                SendKeys "%{DOWN}"
                End Sub
                [/code]

                Regards
                Veena

                Comment

                Working...