PDA

Click to See Complete Forum and Search --> : Drag files/objects from app to app


puchunga
Nov 27th, 2000, 10:31 AM
Hello again peeps,

I have had no luck in being able to drag an email from say Outlook express onto my ftp app and upload it to an ftp server.
All the drag and drop funstionality and ftp functionality has been finished. I just want to know how to recognise that an object dragged onto my app is an email or not (there is no .eml extension at this point).
Anyone know ??

Thx

Nov 27th, 2000, 01:59 PM
To receive things dropped on your application, use the OLEDragDrop event. Set the OLEDropMode property to "Manual".

Here is an example:

Private Sub Text1_OLEDragDrop(Data As DataObject, _
Effect As Long, Button As Integer, Shift As Integer, X As _
Single, Y As Single)

If Data.GetFormat(vbCFFiles) Then Msgbox Data.Files(1)

End Sub

^This will accept files from Explorer dropped on to your form and will tell you what file it was that was dropped.