Dude, it almost the same thing as dragging and dropping internat objects.
What you need to do is get the dragged object as a FileDrop:
on your DragEnter handler:
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
'this is a file
e.Effect = DragDropEffects.Copy
else
e.Effect = DargDropEffects.None
End If
on your DragDrop handler:
Dim data as Object = e.Data.GetData(DataFormats.FileDrop)
Dim fileList() as object = CType(data, object())
Dim fileName as string
For Each fileName in fileList
'do whatever you need to do with the file name
Next
There are probably some syntax errors above but you get the idea.
HTH
TJ!
"Christian Blackburn" <Christian@Damn@Sp**@Hotmail.com> wrote in message
news:eU*************@TK2MSFTNGP12.phx.gbl...
Hi Gang,
I would like to be able to drag and drop documents onto my application and
have them open immediately thereafter. Can somebody point me towards a KB
article or example? I could find a lot of examples pertaining to dragging
and dropping objects within a form, but nothing about dragging external
documents over a form.
Thanks in Advance,
Christian Blackburn