I have a listbox that contains many names in the form Lastname, Firstname Middlename.
The list is sorted.
I want to be able to type a part of a name in a textbox and the program will select the first name in the listbox that matches.
For example, if the listbox contains:
Baker, Larry T.
Jameson, Bart M.
Jones, George Lee
Jones, Noel
Then if "J" is typed in the textbox, the "Jameson" entry would be selected.
But if "Jo" is typed, then the first "Jones" is selected (or both).
If "Jones, N" is typed, "Jones, Noel" is selected.
Is there some way I can avoid coding a search routine for this?
The list is sorted.
I want to be able to type a part of a name in a textbox and the program will select the first name in the listbox that matches.
For example, if the listbox contains:
Baker, Larry T.
Jameson, Bart M.
Jones, George Lee
Jones, Noel
Then if "J" is typed in the textbox, the "Jameson" entry would be selected.
But if "Jo" is typed, then the first "Jones" is selected (or both).
If "Jones, N" is typed, "Jones, Noel" is selected.
Is there some way I can avoid coding a search routine for this?