Click here to Skip to main content
15,905,971 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i need solution for seaching in combobox textbox with alphabet matching.

What I have tried:

i tried a simple way of search with start index or start position of list items
Posted
Updated 17-Apr-19 0:44am
Comments
Baljeetsingh Sucharia 17-Apr-19 6:43am    
your question isn't clear to me post some code/screenshot to understand.

1 solution

See article here: ComboBox with Suggest Ability based on Substring-Search[^]

As you may find using a Binding source is overkill, you can also try this:
this.comboBox1.DropDownStyle = ComboBoxStyle.DropDown;
this.comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
this.comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems;
this.comboBox1.Items.Add("One");
this.comboBox1.Items.Add("Two");
this.comboBox1.Items.Add("Three");
this.comboBox1.Items.Add("Four");
 
Share this answer
 
v2
Comments
Member 13750004 18-Apr-19 2:30am    
this only work with first part or start with.
but i need solution with contians letter match letter with every single list item
RickZeeland 18-Apr-19 2:37am    
Take a look at the article, this allows to use a custom search.

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