Combo Box: Selection by character entry

CComboBox description says " ... if the combo box has the drop-down list style, the user can type the initial character of one of the items in the list, and the list box, if visible will highlight the next item with that inital character".  By typing a second character within a short intervial, I have observed that items having the same first character can be selected.   For instance, if the list has the entries "OH" "OK" "OR", typing "O" and then "R" (without pausing) will select "OR".   But if the list has entries "II" "III" "IV" "V", typing "I" and then "V" (again without pausing) selects "V", not "IV" as I wished.  Typing "I" and then "I" selects "III", not "II".  I have not been able to locate the code that does the selection.   Where is it?  How can I fix this anomalie of combo box item selection by key stoke of the first two characters?
tkburschAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
madhav102398Connect With a Mentor Commented:
hey tkbursch,

nice to know i was helpful
i am beginner too

madhav
0
 
madhav102398Commented:
hi tkbursch,

i have tried a ComboBox with the items you have specified.
if the ComboBox is of Drop List style and the ComboBox is sorted, then your second example of I, II, III, IV, V even works. But if your ComboBox is not sorted the ComboBox supports only the first character entry, not more than that. But it supports for more than one character entry only if it is sorted.

madhav
0
 
madhav102398Commented:
I mean, ComboBox supports for more than one character entry, only when ComboBox is sorted.
0
 
tkburschAuthor Commented:
You sure hit the nail on the head.  Fixed my problem
Thanks for your help.
0
All Courses

From novice to tech pro — start learning today.