This topic is now archived and is closed to further replies.


How do I drag a list item from one program to another?

Recommended Posts

I''m trying to to drag one of the list results in another program(meaning select the list box item, then drag it over) and drop it into a listbox on my form (I''m using Visual Basic at the moment). Is there any way to do this? The only "data" that I''d like brought over from the drag-n-drop is the string in one of the listbox''s columns.. So..any help guys?

Share this post

Link to post
Share on other sites
Well in Visual Basic, it''s:

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

End Sub

But the properties of the Data object are only like

.GetData(format as integer)
.GetFormat(format as integer)

Very limited like that. I thought GetData would have something to do with my question, but if it is, I don''t know what to use in the arguments for "format".

So eh..heh now what

Share this post

Link to post
Share on other sites