New entry in combox

G

Guest

Hi all,

I currently have a combobox that is filled with names and that works great.
I am using the SelectedIndexChanged event to see when the user clicks/selects
an existing entry in the combobox. When that happens, a sub is called to
pull the related data from a database and display on the screen.

My question is about when the user types in an entry that is not in the
combobox. At that point the entry fields should be cleared and the user can
fill them out and add the record.

Can I use the SelectedIndexChange to see wehter or not the typed in text
matches an entry? If not, what would be the best route to accomplish this?

Thanks in advance,

George
 
G

Guest

I assume the user will have to hit the enter key when he is finished typing
or some other trigger to provide an indication that he is finished. You can
use the FindStringExact method to determine if what he typed is in the combo
box.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top