
Drag an item of Listview to another position of the same ListView
Hello,
I move the selected item in listview through lsv.ItemDrag and and then get
it by handling lsv.DragDrop.
e.g.
'=================================
Private Sub lsvImageFile_DragDrop(ByVal sender As Object, ByVal e As
System.Windows.Forms.DragEventArgs) Handles lsvImageFile.DragDrop
Dim item As MyListViewItem
item = e.Data.GetData(GetType(MyListViewItem))
lsvImageFile.Items.Remove(item)
lsvImageFile.Items.Add(item)
End Sub
'-----------------------------------------------------
It can work, by cannot add the item to position where the mouse left click
is released in the listview. It now must add to the bottom of the listview.
However can I move to a specific position (e.g. second row) of the listview?
Thank you!
Jason