CodeItBetter Programming Another VB Programming Blog

How to Drag files from Windows Explorer to a form and get their full path

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
10
11
12
'Forms - How to Drag files from Windows Explorer to a form and get their full path

Option Explicit
 
'Set the Form OLEDropMode Property to 1 - manual
Private Sub Form_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, _
    Shift As Integer, X As Single, Y As Single)
    Dim I As Integer
    For I = 1 To Data.Files.Count
        Debug.Print Data.Files(I)
    Next I
End Sub
Filed under: Forms Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.