-
List to select from
Hi, I am still learning c# but I have a question. I have created a app that query's a SQL database for a person by their First Name. I have a text box where a user enter the First Name to search. I would like to list all the names that start with the first name in a table and allow the person to select his name from the list. Anything that I can add from the toolbox that would allow me to list the query data into a selectable table?. Thanks for all the help!
-
A ComboBox comes to mind. How you can connect it to your datasource depends on your datasource. As far as I can remember ComboBoxes can be bound to datasources but that seems a bit much for a beginner. Iterate through your query results and .Add them to your ComboBox one by one.
-
k, so I was looking at the combobox that would do the job but I wanted something in a list form. In the same category I found Listbox and it does says that users can select from the list. I will give that a try. Thanks for the help!!!