Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on vb.net.
I have a combobox containing IDs of Patients. eg
SQL
001,002,003,004,005,006 etc.

I want to filter the combobox.
i.e if I enter 001
I want the combobox to show only 001 and from which i can select it.!!!
Please help Soon..!!! :)

Thankss In advance
Posted
Updated 17-Jan-12 19:11pm
v2

Hello Cluelessssss ,

You can achieve it with below step

1) Fill "AutoCompleteCustomeSource" of combobox
2) Set "AutoCompleteMode" to "SuggestApend"
3) Set "AutoCompleteSource" to "CustomeSource"

Hope this helps
--Rahul
 
Share this answer
 
Comments
Cluelesssssss 18-Jan-12 5:56am    
Thank you soo much for the reply..!!!! :)...... ur solution WORKED..!!!! Thanks a Tonn...!!!
Hi,
You need fill your ComboBox when Text in the Textbox changes.

go through this-
Change the query -

Populate Combobox from dataset[^]
Populate data from database in a ComboBox[^]
 
Share this answer
 
Comments
RDBurmon 18-Jan-12 3:01am    
This is wrong way to do as per performance is also a key element in software development
Cluelesssssss 18-Jan-12 5:55am    
Thank you soo much for the reply..!!!! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900