By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 1,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

New entry in combox

P: n/a
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
Mar 30 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
--
Dennis in Houston
"George" wrote:
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

Mar 31 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.