Home » Controls » How to Drag/drop files from explorer to a listbox
How to Drag/drop files from explorer to a listbox
Posted on January 5, 2009
1 2 3 4 5 6 7 8 9 10 11 12 13 | 'Controls - How to Drag/drop files from explorer to a listbox Private Sub Form_Load() List1.OLEDropMode = vbOLEDropManual End Sub Private Sub List1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, _ Shift As Integer, X As Single, Y As Single) Dim I As Long For I = 1 To Data.Files.Count List1.AddItem Data.Files(I) Next I End Sub |
Related posts:
- How to Drag files from Windows Explorer to a form and get their full path
- How to enable the user to drag and drop items between two list boxes
- How to implement Drag and Drop in TreeView Control
- How to Drag/Move items from one List Box to another List Box
- How to display a picture if you drag the Picture file to Picture Box
- How to add item to a multi-column Listbox (in two ways)
- How to select items in ListBox with right mouse button
- How to limit selections in a listbox control
- How to detect on which item the Mouse is hover on ListBox
- How to Drag controls even at Runtime
Enjoy this article?
Filed under: Controls
Leave a comment
Sponsors
Link Back to us
Donations
If you are benefited from this site, please donate a small contribution to us. It will help to maintain this site better.