Populating a Listview

  • Thread starter Thread starter MrB
  • Start date Start date
M

MrB

I am quite new to vb.net. I have been using VBA for years, but an having
problems with populating a listview. I have tried many things, including
snippets of code from some news groups with no success. I have even
purchased a couple of books on vb.net and still do not have it working.

I would like to see some example code that will connect to an Access
database and populate a listview box with an autonumber field and a couple
of text fields.

I just cannot seem to get it done and any help will be appreciated.

Thanks in advance.

Papa Smirf
 
Mr. B.

The listview is not the nicest control to use with a database, you have to
do everything by hand, have a look at the datagrid (windowforms, there is as
well an almost complete different one for webpages)

The listview is very good for explorer like applications (in fact it is a
part of explorer). To see more of those things working you can look in this
resourcekit where are by instance a lot of samples in.

VB.net Resource kit
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing the resource kit
http://msdn.microsoft.com/vbasic/vbrkit/faq/#installvdir

A better newsgroup to ask your VBNet language questions is

news://msnews.microsoft.com/microsoft.public.dotnet.languages.vb

I hope this helps?

Cor
 
Back
Top