public void AutoComplete() { AutoCompleteStringCollection AutoItem = new AutoCompleteStringCollection(); foreach (DataRow rw in Dt.rows) { AutoItem.Add(Rw["columnname"].ToString()); } texbox.AutoCompleteMode = AutoCompleteMode.Suggest; texbox.AutoCompleteSource = AutoCompleteSource.CustomSource; texbox.AutoCompleteCustomSource = AutoItem; }
AutoItem.IndexOf(textbox.Text) ?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)