Results 1 to 3 of 3

Thread: drag and drop between apps

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    3
    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...

  2. #2
    Guest
    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    3
    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
  •  



Click Here to Expand Forum to Full Width