Display list of data from textbox
Hi
I want to type some data in a text box and the text box should show as a list of existing data in the table,so that the user can select the required data. For each alphabet he should get the entire list
thanks
Veeraraghavan
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Stefan138 reputationPosted Mar 17, 2009, 1:15 PM EDT
Sorry for the late reply, I've been really busy.
You can do this a few ways. Probably the easiest way is to create a data reader (SqlDataReader), and then add the reader to the autocomplete custom source (textBox1.AutoCompleteCustomSource.Add(dataReader[0].toString());)
Stefan138 reputationPosted Mar 13, 2009, 8:15 AM EDT
Is the table from a database? If not, and you are using Visual Studio or Visual C# Express, then just use the autocomplete property, and set the autoCompleteCustomSource collection to whatever items you want.
It can all be done from the properties window. If, though it's from a database you have to do it a little differently...
Veeraragahvan Thirumale18 reputationPosted Mar 13, 2009, 9:47 PM EDT
Veeraragahvan Thirumale18 reputationPosted Mar 19, 2009, 1:41 AM EDT