(I heard Al Gore helped work on Visual C++ 3.0)
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?
Printable View
(I heard Al Gore helped work on Visual C++ 3.0)
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?
wait, huh?
Bill clinton worked on Microsoft PornStudio 5.0 Berret Edition.
Is that true? I only ask because I heard that cbvbguy worked on Microsoft GetYourselfToTheTopOfTheMessageBoard 7.0 beta Professional Edition ... just as a matter of interest ;)
To answer your question:
Make sure to set the listbox's OLEDropMode property to 1(Manual)
Add a ListBox to your form
put the following code in:
[Edited by gwdash on 09-17-2000 at 10:38 PM]Code:Private Sub List1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim text As String
text = Data.GetData(vbCFText)
List1.AddItem text
End Sub