This is a migrated thread and some comments may be shown as answers.
MouseMove Listview
0 Answers 9 Views
This is a migrated thread and some comments may be shown as answers.
Cesar
Top achievements
Rank 1
Cesar asked on 27 May 2014, 02:37 PM
When I use the mouse on the [MouseMove] event, I can retrieve a value if I am in Columns, details, and scroll? 

I have a problem with ListView DoDragDrop not allow me to slide the scrool or columns.

Code:

private void lvwDetalle_MouseMove(object sender, MouseEventArgs e)
    {

      if (this.mouseDown && !this.dragged) {

        Point pt = this.lvwDetalle.PointToClient(Control.MousePosition);







        this.dragged = true;
        List<ListViewDataItem> selectedItems =
          this.lvwDetalle.SelectedItems.ToList<ListViewDataItem>();
        if (selectedItems.Count > 0) {
          //DragDropEffects.
            

          this.lvwDetalle.DoDragDrop(selectedItems, DragDropEffects.Move);
        }

        
      }      
    }

No answers yet. Maybe you can help?

Asked by
Cesar
Top achievements
Rank 1
Share this question
or