Enable complete search combination for your type in WinForms?

The Windows Forms ComboBox control offers only a partial search for your type — it only searches for the first letter. For example, if you type "c" and "a", do not expect "California" to become the selected — instead, you will land on a state starting with "a".

Somehow, perhaps via Firefox, I'm used to being able to find items by typing the first few letters of an item. This is especially useful if the items are not sorted alphabetically for one reason or another.

Is there a way to enable "Search by Type" box mapping for WinForms, which ideally doesn't require a lot of coding or third party payment?

+2


source to share


1 answer


The feature you are looking for is the autocomplete in the ComboBox. The default behavior will not allow what you want to do. I doubt you need to flip your own logic or inherit any one work.

You can check the following articles at CodeProject for this.



alt text

+3


source







All Articles