PDA

Click to See Complete Forum and Search --> : drag and drop between apps


puchunga
Nov 14th, 2000, 11:36 AM
Hello people,
I am new to VB programming and have put together an app that allows the user to drag a file onto the app. The app then ftp's the file to an ftp server that has been input into a textbox by the user.
What I would like to do is allow a user to drag an email from outlook express (or similar) onto my app and ftp that email to the ftp server. Any attachments should go with it as well.
Thanks for any help in advance...

Nov 14th, 2000, 01:45 PM
To accept anything that is dragged on to your form, set the OLEDropMode property (of the form) to "Manual".

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


That should get you started.

puchunga
Nov 15th, 2000, 12:06 PM
Thanks for that.
I actually have everything working. You can drag a file onto the app and it will get uploaded to the specified FTP server.
What I can't do is drag an email from Outlook express etc onto the app.
Thanks.