Discussion:
Drag n Drop from a list box
(too old to reply)
Laphan
17 years ago
Permalink
Cannn''''tttt believe I've got completely dumbfounded by this!

I want to drag and drop a list box entry onto another list box entry, BUT:

1) If I simply change the DragMode of the source listbox to automatic then I
can't pick an individual entry on the list box and I'm simply dragging the
whole source listbox onto the destination listbox, which quite rightly (or
so it appears) can't identify a particular text entry.

2) If I leave the source listbox on manual DragMode and set the mode to auto
when I do click, mousedown or mouseup on the listbox then I can click on an
individual entry, but I have to click on the item, let go of the mouse, then
click on this item again to drag it onto my destination list box!! If I've
incorrectly clicked on a particular list item then I have to do a dummy drag
n drop just so I can go and pick the one that I want!

All I want to do is pick on a particular entry on a list box and then drag
that entry to a destination list box so that the destination knows what text
entry was.

Can't believe this is so difficult!

FYR, I'm running vb6 sp6.

Many thanks for any help you can give.

Rgds
Laphan
17 years ago
Permalink
Sorted

Just didn't know about the drag command.

Sorry to bother you!

"Laphan" <***@dont.spam.com> wrote in message news:***@posted.metronet...
Cannn''''tttt believe I've got completely dumbfounded by this!

I want to drag and drop a list box entry onto another list box entry, BUT:

1) If I simply change the DragMode of the source listbox to automatic then I
can't pick an individual entry on the list box and I'm simply dragging the
whole source listbox onto the destination listbox, which quite rightly (or
so it appears) can't identify a particular text entry.

2) If I leave the source listbox on manual DragMode and set the mode to auto
when I do click, mousedown or mouseup on the listbox then I can click on an
individual entry, but I have to click on the item, let go of the mouse, then
click on this item again to drag it onto my destination list box!! If I've
incorrectly clicked on a particular list item then I have to do a dummy drag
n drop just so I can go and pick the one that I want!

All I want to do is pick on a particular entry on a list box and then drag
that entry to a destination list box so that the destination knows what text
entry was.

Can't believe this is so difficult!

FYR, I'm running vb6 sp6.

Many thanks for any help you can give.

Rgds

Loading...