ListView Drag & Drop

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

    ListView Drag & Drop

    Hi,


    I have 3 listview on my screen List1 , List2, List3
    Now I want to be able to drag from list1 to list3 but not to list2. On the
    Dragenter event is it possible to know from which object on the screen the
    drag is coming.

    Thanks
    Ivan


  • Ciaran O''Donnell

    #2
    RE: ListView Drag & Drop

    When the user starts to drag, you need to call List.DoDragDrop (object) and
    pass an object across. You can write a DragDropInfo class with a variable for
    the source list and a variable for the item being dragged. Then pass this to
    DoDragDrop.

    Ciaran O'Donnell

    "Ivan Sammut" wrote:
    Hi,
    >
    >
    I have 3 listview on my screen List1 , List2, List3
    Now I want to be able to drag from list1 to list3 but not to list2. On the
    Dragenter event is it possible to know from which object on the screen the
    drag is coming.
    >
    Thanks
    Ivan
    >
    >
    >

    Comment

    • Denis Gomes

      #3
      RE: ListView Drag & Drop

      Hi, I have the same problem that Ivan but I didn't find the DragDropInfo class.
      Could you explain better?

      Thanks.

      "Ciaran O''Donnell" wrote:
      When the user starts to drag, you need to call List.DoDragDrop (object) and
      pass an object across. You can write a DragDropInfo class with a variable for
      the source list and a variable for the item being dragged. Then pass this to
      DoDragDrop.
      >
      Ciaran O'Donnell
      >
      "Ivan Sammut" wrote:
      >
      Hi,


      I have 3 listview on my screen List1 , List2, List3
      Now I want to be able to drag from list1 to list3 but not to list2. On the
      Dragenter event is it possible to know from which object on the screen the
      drag is coming.

      Thanks
      Ivan

      Comment

      Working...