Discussion Locked

Combo (Select as you type)

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I've combobox contains long list of city names. Now I want to select the entry as I type. For ex if "Am" is typed it select the entries starting with "am". If "Van" is typed it select the entries startin with "Van". I need help for the same.

1 reply

by tony hopkinson

Do you want to cut down the list of choices available based on input or jump the highlight to the nearest match. I'd be shocked if you can't download a 3rd party activeX with this functionality.
But essesntially you trap the keys
with a keydown handler and extract matches from an external list of items and then repopulate the combo list items or you iterate through the items in the combolist for the first match and set the selected? property.

This discussion is closed to new replies.