Results 1 to 2 of 2

Thread: Drag and Open

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    127

    Exclamation

    Hi there every one...I have been building an application called ASPWizard,and I was wanting to grab a text file and drag it over to my aplication and open it staight away, insted of going to File >Open etc...

    Many thanks
    ASPWIZARD

    http://www.aspwizard.co.uk

  2. #2
    Lively Member
    Join Date
    Sep 1999
    Location
    Liverpool, UK
    Posts
    64
    Set the OLEDropMode property of the form to Manual, then add this ..

    Private Sub Form_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)

    dim a

    For a = 1 To Data.Files.Count
    MsgBox "User drag and dropped the file: " + Data.Files.Item(a)
    Next a

    End Sub

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