Results 1 to 3 of 3

Thread: Drag a Listview Item Onto a panel

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Location
    Bulawayo, Zimbabwe
    Posts
    576

    Drag a Listview Item Onto a panel

    How do I drag the text from a listview sub Item and then create a label on a panel in the exact location
    that the user performs the drop, the label should contain the text from the listview sub item

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    Re: Drag a Listview Item Onto a panel

    how far have you got so far?
    post your code...

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Location
    Bulawayo, Zimbabwe
    Posts
    576

    Re: Drag a Listview Item Onto a panel

    Hi .Paul i have faked it :

    Using the mouse down event on the list view to change the cursor on the List View the form and the panel to Cursors.NoMove2D
    When the mouse up event on the panel triggers i have taken the cursor position and created a label on the panel at that position
    The label is then populated with the text of the selected item in the list view and the cursors of all the controls are returned to their
    original values.
    Although it works, it is not the most elegant way of doing things.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width