How do I drag and drop items between 2 listview controls?
I can drop the selected item into a text box but not into the listview
I want to drag from lvwEntitlements and drop the item onto lvwApplied.
I think this gets the item text from the lvwEntitlements (dragMode is set to automatic)
[VBA]Private Sub lvwEntitlements_ItemClick(ByVal Item As MSComctlLib.ListItem)
Set MyDataObj = New DataObject
MyDataObj.SetText Item
End Sub[/VBA]
and this is the closest I could find to drop the item
(dropmode is set to manual)
[VBA]Private Sub lvwApplied_OLEDragDrop(Data As MSComctlLib.DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
Data.GetText
End Sub[/VBA]