Results 1 to 2 of 2

Thread: Drag files/objects from app to app

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    3

    Exclamation

    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

  2. #2
    Guest

    To get you started...

    To receive things dropped on your application, use the OLEDragDrop event. Set the OLEDropMode property to "Manual".

    Here is an example:

    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
    ^This will accept files from Explorer dropped on to your form and will tell you what file it was that was dropped.

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