Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a question about List boxes. How would you display data from an Access database in a list box (like each row under a column is displayed). I am currently working on a project that displays website information (for websites that I have made), I've already made the database that has all of the information and added it to my project (by the way, I'm using Visual Studio 2012 Ultimate and working with VB.NET Forms Applications). In the database, one title for a column is 'Website Name'. How would I display all of the items under this column in a list box? And also, while I'm asking this, how would I display data from the database in text boxes (the user clicks a button, causing the website information to show in text boxes with labels above them, like 'Website Creation Date', 'Rating', all of which are in the database as column names) ?
Posted

1 solution

Check this link and scroll to Forms over Data Video Series section....
http://msdn.microsoft.com/en-US/vstudio/bb466226.aspx[^]

You will found a lot of interesting information ... You can do what you are asking for in visual studio 2012 with out writing a single line of code :)

You can create a new data source and then add a listbox to the form and data bound it to the data source.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900