Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autocomplete in a textbox

Status
Not open for further replies.

scklifasovskiy

Programmer
Nov 12, 2012
57
CA
Hi all,
I have created a class that have textboxes with autocomplete functionality.
Works very well. However, when you start typing let's say "j" - you're looking for John- it works perfectly... BUT if in your database name is recorded Mr. John and you type "J" it doesn't work as it looks for words starting from "M". If there is any way autocomplete can show me not from first letter but everything that contains John? I.e both from my database "John" and "Mr. John"?

thank you
 
You can't do that with the built-in autocomplete. You could build a class that does that. You'd need code in KeyPress to intercept each keystroke and handle it.

While it doesn't do exactly what you want, you can get some ideas how to do this sort of this from my QuickFill combo class, described in
Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top