-
I have a combobox with for example this information :
010, xxx
020, yyy
030, qqq
222, eee
I can make it so that if you press "zero zero" it moves to the "020, yyy". But i want it to move (and display) that line if you press "zero two". Is that possible ?
Here is some code yto put in form_load to fill the combo :
Combo1.AddItem "010, xxx"
Combo1.AddItem "020, yyy"
Combo1.AddItem "030, qqq"
Combo1.AddItem "222, eee"
-
I think you have to subclass the combobox for WM_KEYDOWN to avoid it to go automatically and store the keys pressed in a static string. Then you would have to make a search function that selects the corresponding item.