Home All Groups Group Topic Archive Search About

Dynamically add user controls to a listview

Author
25 Nov 2006 4:44 PM
HDI
Hi,

I used this a long time ago in VB6

How can I dynamically add user controls to a listview ?

Thx

Author
26 Nov 2006 11:12 PM
Ryan S. Thiele
At runtime?

dim itm as new listviewitem(sometext)
itm.subitems.add(somesubtext)
listview1.items.add(itm)

this what you want?


--
Thiele Enterprises - The Power Is In Your Hands Now!

--
"HDI" <hd***@hotmail.com> wrote in message
news:1164473050.716740.114420@j44g2000cwa.googlegroups.com...
Hi,

I used this a long time ago in VB6

How can I dynamically add user controls to a listview ?

Thx
Author
27 Nov 2006 5:59 AM
HDI
Yes,

But sometext has to be someusercontrol (with labels and textfields).
A listbox is also good.

Thx

Ryan S. Thiele schreef:

Show quoteHide quote
> At runtime?
>
> dim itm as new listviewitem(sometext)
> itm.subitems.add(somesubtext)
> listview1.items.add(itm)
>
> this what you want?
>
>
> --
> Thiele Enterprises - The Power Is In Your Hands Now!
>
> --
> "HDI" <hd***@hotmail.com> wrote in message
> news:1164473050.716740.114420@j44g2000cwa.googlegroups.com...
> Hi,
>
> I used this a long time ago in VB6
>
> How can I dynamically add user controls to a listview ?
>
> Thx