Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Multi-DragDrop Operation With ListBox

I was searching around looking for help to do multi-DragDrop's with ListBoxs, but found nothing. I know how-to do Single DragDrop Operations, but no idea on how-to-do multi-operations,
Any Help is appreciated,
Thanks
Kyle
[249 byte] By [XRsTX] at [2007-11-11 7:37:40]
# 1 Re: Multi-DragDrop Operation With ListBox
Anyone? :confused:
XRsTX at 2007-11-11 17:26:37 >
# 2 Re: Multi-DragDrop Operation With ListBox
what do you mean with multi d&d? dragging multiple lines from the listbox?

PS keep in mind that many people like me just came back today from the holidays

Marco
mstraf at 2007-11-11 17:27:37 >
# 3 Re: Multi-DragDrop Operation With ListBox
What i Meant by Multiple Drag&Drop operation was to Drop Multiple files from (example Desktop or My Downloads) to the ListBox adding all the files added that were selected
XRsTX at 2007-11-11 17:28:43 >
# 4 Re: Multi-DragDrop Operation With ListBox
add a listbox and set the OleDropMode property to 1 (Manual) then use the OleDragDrop event like:

Private Sub List1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
With List1
.Clear
Dim k As Long
For k = 1 To Data.Files.Count
.AddItem Data.Files(k)
Next
End With
End Sub

does this answer your question?
mstraf at 2007-11-11 17:29:48 >
# 5 Re: Multi-DragDrop Operation With ListBox
Yes thanks mstraf that does answer my question. I was doing it that way with single-file drag&drop without ForNext.
XRsTX at 2007-11-11 17:30:47 >