Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create an Auto-complete combo-box or text box to filter text containing a string

How do I create an Auto-complete ComboBox or TextBox that filters text based on a string?

For example: if I type an "a" in a TextBox, I only get to see all strings containing an "a".

like image 300
jozi Avatar asked Nov 30 '10 14:11

jozi


1 Answers

If you mean show suggestions then it's a simple matter of changing a property when you have the TextBox selected in your IDE of choice:

The options shown in the picture allow you to change the rules for autocompleting text in the text box as well as the source for the suggestions. (Visual Studio 2010)

Properties

You can go to the following link to learn more about the TextBox control.

MSDN Text Box Control

like image 146
Jamie Keeling Avatar answered Sep 30 '22 00:09

Jamie Keeling