Dynamically add user controls to a listview

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • HDI

    #1

    Dynamically add user controls to a listview

    Hi,

    I used this a long time ago in VB6

    How can I dynamically add user controls to a listview ?

    Thx

  • Ryan S. Thiele

    #2
    Re: Dynamically add user controls to a listview

    At runtime?

    dim itm as new listviewitem(so metext)
    itm.subitems.ad d(somesubtext)
    listview1.items .add(itm)

    this what you want?


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

    --
    "HDI" <hdinf@hotmail. comwrote in message
    news:1164473050 .716740.114420@ j44g2000cwa.goo glegroups.com.. .
    Hi,

    I used this a long time ago in VB6

    How can I dynamically add user controls to a listview ?

    Thx


    Comment

    • HDI

      #3
      Re: Dynamically add user controls to a listview

      Yes,

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

      Thx

      Ryan S. Thiele schreef:
      At runtime?
      >
      dim itm as new listviewitem(so metext)
      itm.subitems.ad d(somesubtext)
      listview1.items .add(itm)
      >
      this what you want?
      >
      >
      --
      Thiele Enterprises - The Power Is In Your Hands Now!
      >
      --
      "HDI" <hdinf@hotmail. comwrote in message
      news:1164473050 .716740.114420@ j44g2000cwa.goo glegroups.com.. .
      Hi,
      >
      I used this a long time ago in VB6
      >
      How can I dynamically add user controls to a listview ?
      >
      Thx

      Comment

      Working...