1
Reply

Listbox, How can I find item starting with example "be" doing keypress?

Sondre Garmo

Sondre Garmo

Aug 28 2005 4:27 PM
5.6k

Hallo!

If I have a listBox with 4 items (Beatles, Bruce Springsteen, Scooter, Eagles) and
press "b" in my listBox, SelectedItem will select the first item on "b".
If I press "be" in my listBox, It will select Eagles and not Beatles like Windows Explorer will do.

How can I press more characters and find the item with these characters?
I want my listBox to work like Windows Explorer does.


Example:
----------------------------

ListBox with follow items:
Beatles
Bruce Springsteen
Eagles
Scooter

Here is my wishes:
"b" = Beatles
"be" = Beatles
"br" = Bruce Springsteen
"e" = Eagles

--------------------------------------

Can somebody help me please?

Thanks


Answers (1)