Dynamically add user controls to a listview

  • Thread starter Thread starter HDI
  • Start date Start date
H

HDI

Hi,

I used this a long time ago in VB6

How can I dynamically add user controls to a listview ?

Thx
 
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!

--
Hi,

I used this a long time ago in VB6

How can I dynamically add user controls to a listview ?

Thx
 
Yes,

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

Thx

Ryan S. Thiele schreef:
 
Back
Top