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!

Maintain focus on incremental search

Status
Not open for further replies.

erp84

IS-IT--Management
Mar 11, 2013
35
US
Hello everyone!

My question pertains to incremental searches using a text box.

On my form I have a text box, and a list box. The list box contains my record set, and the text box allows for incremental searching of my records. So far it works great, except I need to "Tab" or "Enter" to get focus of the record highlighted in the list.

Any suggestions how to get focus as soon as it moves to the next match? Right now I'm refreshing several text boxes and labels in the InteractiveChange of the list box. These text boxes just contain additional data about the selected record.

Thanks!
 
I actually figured it out, sometimes it helps to key out your thoughts I guess.

What I ended up doing was just setting focus to the listbox when it selected a match, and immediately back to the textbox to allow for additional search characters.

So for this is working fantastic, much more smooth than the built in incremental combobox.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top