Listview + multiselect + drag & drop = bug? 
Author Message
 Listview + multiselect + drag & drop = bug?

Hi all,
I use VB6 / SP3, up until now I've successfully implemented drag & drop from
the listview to another ctrl. I want to do the same with
myLVctrl.Multiselect = true. Here's how I start the drag operation:

Private Sub myLVctrl_MouseMove(Button As Integer, Shift As Integer, x As
Single, y As Single)
    Call .Drag(vbBeginDrag)
End Sub

I expected that the ctrl let all the selected items hilighted as in windows
explorer. Its works OK when dragging with right mouse button. But with left
mouse button, all the selected items become unhilighted, except the only one
item where the mouse is over. And at the drop, the receiver object only
"see" this unique item. Same behaviour if I implement the listview click
event or not.

Actually, I can do multiselect + drag & drop correctly with the left mouse
button, but I really have to glide VERY quickly with the mouse to have the
chance having all the selected items hilighted. I suspect the VB6's listview
ctrl is not the same than the one used in Windows Explorer.

If you already came across this pb. I'll appreciate greatly to share your
Thank you very much in advance.

Daniel-Tri Nguyen
(if answer by email, please remove all digits and spaces from my email

Thu, 02 Jan 2003 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Listview drag and drop bug in icon mode when multiselect=true

2. Listview drag and drop bug in icon mode

3. Drag&Drop from ListView

4. TreeView + ListView +Drag&Drop

5. Subject: ListView Drag & Drop Re-order

6. Listview drag & Drop

7. Drag-&-drop in listview control??

8. Drag & Drop in Listviews

9. Q:drag/drop & columns on ListView

10. Listview drag & drop

11. Drag & drop action within ListView and Treeview

12. Drag from ListView & Drop in TreeView controls


Powered by phpBB® Forum Software