Results 1 to 4 of 4

Thread: [RESOLVED] Drag and Drop from Explorer to VB App

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Posts
    106

    Resolved [RESOLVED] Drag and Drop from Explorer to VB App

    Man, I'm a little rusty here guys on the OLE stuff, can someone please give me some help.

    Simply want to drag and drop an external Explorer file, such as a text file, onto my App's command button (ideally). The file dropped from Explorer I just need to capture it's full path into a string variable (strSource) and I can take it from there. Any help and refreshers would be greatly appreciated...

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Drag and Drop from Explorer to VB App

    I have requested the thread moved out for the code bank.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3
    Just a Member! seenu_1st's Avatar
    Join Date
    Aug 2007
    Location
    India
    Posts
    2,170

    Re: Drag and Drop from Explorer to VB App

    try something like this
    Code:
    Private Sub Command1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
    MsgBox Data.Files(1)
    End Sub
    
    Private Sub Form_Load()
    Command1.OLEDropMode = 1 'manual
    End Sub
    Seenu

    If this post is useful, pls don't forget to Rate this post.
    Pls mark thread as resolved once ur problem solved.
    ADO Tutorial Variable types SP6 for VB6, MsFlexGrid fast fill, Sorting Algorithms


  4. #4

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Posts
    106

    Smile Re: Drag and Drop from Explorer to VB App

    Seenu, thanks for your reply. However, during the interim I had noticed I did not set the OLEDropMode during design time, it was incorrectly set at "None" so when set to manual all is well. Thanks very much!

Tags for this Thread

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