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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
AutoCompleteStringCollection autoCompleteList =
new AutoCompleteStringCollection();
/* copy your datacolumn in to autoCompleteList iteratively here */
txtBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend; /* or just Suggest */
txtBox.AutoCompleteCustomSource = autoCompleteList;
回答2:
You can use this control in your application if you using c# application.