OK, I see you've tried...
Firstly if you are trying to drag files from windows explorer to your VB6 app in Vista it will never work. That's just the way it is. If you have XP or older then you can.
I assume you are trying to drag a picture straight from a folder?
Anyway, you will need to grab the URI of the picture and then load that into the picture box yourself. Here is an example where you can drag files into a listbox (just make a form and put one listbox on it)
CODE
Option Explicit
Private Sub Form_Load()
List1.OLEDropMode = 1 ' Manual
End Sub
Private Sub List1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
If Data.GetFormat(vbCFFiles) Then
Dim i As Integer
For i = 1 To Data.Files.Count
List1.AddItem Data.Files(i)
Next
End If
End Sub
Another thing. VB6 isn't going to keep working forever... You should download the Express Edition of either C# or VB.net which is free from MS. You can get 2005 edition (maybe), or 2008.
In fact... does anyone have any idea why OleDragDrop doesn't seem to work on Vista???? It doesn't worry me cause I don't use it, but I'd still like to know why...
This post has been edited by Nayana: 26 Dec, 2007 - 11:53 PM