
Does Anyone Know How To Drag And Drop?
Quote:
>> >Hello,
>> >Does anyonone understand the finer points of Drag-and-Drop events and
>methods?
>> >Here's is my problem:
>> >I have a list that I want the user to be able to drag to another window.
>> >But I don't want to drag the text of the list, I want to drag the
>> >ItemData.
>> >The ItemData contains id information that I need for the drop to work
>properly.
>> You don't need to put ID information in the ItemData array to get
>> DragDrop to work. Please clarify what you are trying to do.
>The list contains names. The ItemData contains primary keys to a database table.
>When the user drags the names, I want the ItemData to be dragged so that
>when the user drops, I can have access to the primary keys. Then I can run
>queries.
>Right now I am getting the Text not the ItemData.
>The drag and drop works just fine. I just want to somehow drag and drop
>the ItemData not the Text.
>Thanks for any help.
>Mike
See my VB FAQ page for an example Drag and Drop application:
http://www.ovnet.com/~voltz/prog/vbfaq.htm
Hope this helps,
:) aka Jack Voltz :) Web: www.ovnet.com/~voltz
:) M A R A N A T H A ! :)
:) S i e m p r e P o r V i d a ! :)
----------------------------------------------------------------------
Prolife: http://www.ovnet.com/~voltz/prolife.htm
Music: http://www.ovnet.com/~voltz/music.htm