lewis valentine
June 2nd, 1999, 03:12 PM
I want to have the combo box feature that automatically selects the first item that matchs the character you passed in.
For example if the combo box had "1","2","3","4" in it and the user typed in "3" the combo box would select three.
But whenever I set the combo box as a drop list and set the CBS_SORT property it turns this feature off. It seems to work the first time the character is pressed but will not select an item the 2nd, 3rd etc... time.
Is there any way to have both CBS_SORT and this selection property on at the same time, or do i have to manually sort the items first.
For example if the combo box had "1","2","3","4" in it and the user typed in "3" the combo box would select three.
But whenever I set the combo box as a drop list and set the CBS_SORT property it turns this feature off. It seems to work the first time the character is pressed but will not select an item the 2nd, 3rd etc... time.
Is there any way to have both CBS_SORT and this selection property on at the same time, or do i have to manually sort the items first.