Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

 

I'd appreciate any help!!!

 

thanks,

Si

Posted

Hi

 

There's 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/default.asp?url=/library/en-us/vbcon/html/vbwlkWalkthroughDisplayingDataFromSingleTableInWindowsForm.asp

 

Walkthrough: Creating a Master-Detail Windows Form

---------------------------------------------------------------------

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkWalkthroughCreatingMaster-DetailWindowsForm.asp

 

Walkthrough: Displaying Data in a Windows Form Using a Parameterized Query

-----------------------------------------------------------------------------------------

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkWalkthroughDisplayingDataInWindowsFormUsingParameterizedQuery.asp

 

 

There's a lot more available

 

Hope it helps

Howzit??

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...