I don't know about .NET, but this info was useful to me in VB 6.
The data that has been packaged by the dragged from application, is available to the dropped on application, although it must be decoded first. For example, to identify a list of files from Windows Explorer use the following:
VB Code:
If Data.GetFormat(15) Then
'Format 15 is an array of names from WinExplorer
MsgBox Data.Files(1)
For i = 2 To Data.Files.Count
MsgBox Data.Files(i)
Next i
Data.Files.Clear
End If
The Format numbers used in the OLE DragDrop data structure, are:
Text = 1 (vbCFText)
Bitmap = 2 (vbCFBitmap)
Metafile = 3
Emetafile = 14
DIB = 8
Palette = 9
Files = 15 (vbCFFiles)
RTF = -16639
If you want to drop files from your application back to Windows Explorer, the following will load the correct data structure with the file names (full names plus path are needed). Remember: Dropping these filenames onto Windows Explorer will initiate a copy operation.
VB Code:
Data.Files.Add "C:\Temp\Myfile1.TXT", 1
Data.Files.Add "C:\Temp\Yourfile2.TXT", 2
Data.SetData , 15