views:

296

answers:

2

I'm trying to autocomplete a textbox. I'm retrieving values from Access Database. Just one field from a data table. If anyone can help me. Thanks in advance

A: 

You can use this control in your application if you using c# application.

affan
+3  A: 
AutoCompleteStringCollection autoCompleteList = 
                                            new AutoCompleteStringCollection();
/* copy your datacolumn in to autoCompleteList iteratively here */
txtBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend; /* or just Suggest */
txtBox.AutoCompleteCustomSource = autoCompleteList;
Veer