Results 1 to 2 of 2

Thread: API.. mmmmmm.... questions.. mmmmm...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    99

    Red face

    How can you do...
    Drag a text link from IE into a form in VB, and have it add that link's URL to a listbox?
    ___________________________
    Chris

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    You don't have to use API to achieve this. Change design time properties of a ListBox to the following:

    OLEDragMode = 1 Automatic
    OLEDropMode = 1 Manual


    then use this code:
    Code:
    Private Sub List1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
        List1.AddItem Data.GetData(vbCFText)
    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