AutoDetect on ComboBox

base836ball

Active member
Joined
May 4, 2005
Messages
31
Programming Experience
1-3
If I have a combo box that has say 4 values:

Apple
Banana
Carrot

How Can i make it so If I hit A then Apple will and B then Banana will appear in the box.

I would assume I would have to use some ASCII values to compare the letter hit to the first letter of each of the 4 Values. Just need some guidance

Thanks,
Drew
 
Nevermind I figured it out. Just had to use the whole If keypress = keys.A and so on

Thanks anyways. Unless someone has a better way of doing it.
 
In design mode, change the "Drop down style" property of the combo box to "Dropdown List". Now when u hit A apple will be automatically populated. If you have two members with A , then keep hitting A so that the combo box automatically shows u members with A one by one. This should work out..
 
or check out that autocomplete combo box i made... it's in one of the threads here you'd have to use the search to find it
 
Back
Top