ListView items images

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

    #1

    ListView items images

    Hi. I'm having a problem with listview controls.

    I'm using a control that adds drag and drop functionality to a listview (I
    get the control from codeproject).

    Now I'm having problems when dragging items that have images. I first
    thougth that an item has its image and I could drag the complete object, but
    I see that in the second listview the image doesn't appear. It appears again
    if I move it again to the first listview.

    I tried this: ListView2.Large ImageList = ImageList1, when ImageList1 is the
    ImageList from ListView1, and then the images appear, so I see the ImageList
    is independent from the items.

    I'm not sure about how to solve that, as I can open different files in both
    listviews and I should move items from one to the other.

    Any ideas please?

    --

    Regards,

    Diego F.


  • tomb

    #2
    Re: ListView items images

    The listview control has a property that specifies what image to use.

    T

    Diego F. wrote:
    Hi. I'm having a problem with listview controls.
    >
    I'm using a control that adds drag and drop functionality to a listview (I
    get the control from codeproject).
    >
    Now I'm having problems when dragging items that have images. I first
    thougth that an item has its image and I could drag the complete object, but
    I see that in the second listview the image doesn't appear. It appears again
    if I move it again to the first listview.
    >
    I tried this: ListView2.Large ImageList = ImageList1, when ImageList1 is the
    ImageList from ListView1, and then the images appear, so I see the ImageList
    is independent from the items.
    >
    I'm not sure about how to solve that, as I can open different files in both
    listviews and I should move items from one to the other.
    >
    Any ideas please?
    >
    --
    >
    Regards,
    >
    Diego F.
    >
    >
    >

    Comment

    Working...