Connecting Tech Pros Worldwide Help | Site Map

Populating a Listview

MrB
Guest
 
Posts: n/a
#1: Nov 22 '05
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


Cor Ligthert
Guest
 
Posts: n/a
#2: Nov 22 '05

re: Populating a Listview


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/vbr...q/#installvdir

A better newsgroup to ask your VBNet language questions is

news://msnews.microsoft.com/microsof...t.languages.vb

I hope this helps?

Cor
[color=blue]
> 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
>
>[/color]


Closed Thread


Similar .NET Framework bytes