Displaying access data in a listbox in.net

BigSi

Member
Joined
Feb 6, 2003
Messages
22
Hi,
Im trying to get used to vb.net after using vb6 and am having trouble accessing an MS ACCESS database - Im trying to display results of a query in a listbox on a windows form.
In VB6 I managed to do this by adding 2 things (its been a while!) to a form, one was a list box, and the other was a data controll which I believed the list box refrenced - I cant seem to remember how I done it, especially as I now have .net infront of me which is really confusing to start with - it took me a while to work out how the simple task of opening a new form was to be done.

Id appreciate any help!!!

thanks,
Si
 
Hi

Theres different ways of doing this, depending on your design. I suggest you look at some of the data access walkthroughs, e.g.

Walkthrough: Simple Data Access in a Windows Form
---------------------------------------------------------------------
http://msdn.microsoft.com/library/d...isplayingDataFromSingleTableInWindowsForm.asp

Walkthrough: Creating a Master-Detail Windows Form
---------------------------------------------------------------------
http://msdn.microsoft.com/library/d...lkthroughCreatingMaster-DetailWindowsForm.asp

Walkthrough: Displaying Data in a Windows Form Using a Parameterized Query
-----------------------------------------------------------------------------------------
http://msdn.microsoft.com/library/d...gDataInWindowsFormUsingParameterizedQuery.asp


Theres a lot more available

Hope it helps
 
Back
Top