|
-
Nov 14th, 2000, 12:36 PM
#1
Thread Starter
New Member
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, 02:45 PM
#2
To accept anything that is dragged on to your form, set the OLEDropMode property (of the form) to "Manual".
Code:
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.
-
Nov 15th, 2000, 01:06 PM
#3
Thread Starter
New Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|