This example shows how to use the Drag & Drop events of a ListBox control to rearrange the items inside it.
(Click to view)
[attachment deleted by admin]
Quote from: BazzaCAD on January 11, 2008, 04:04:33 PM
This example shows how to use the Drag & Drop events of a ListBox control to rearrange the items inside it.
(Click to view)
Barry, I haven't read your code yet. Just wondering if you can drag & drop multiple items at once?
Quote from: Kelie on January 11, 2008, 08:15:07 PM
Quote from: BazzaCAD on January 11, 2008, 04:04:33 PM
This example shows how to use the Drag & Drop events of a ListBox control to rearrange the items inside it.
(Click to view)
Barry, I haven't read your code yet. Just wondering if you can drag & drop multiple items at once?
It doesn't look like it's possible, because when the OnDragnDropBegin fires, it deselects all the others except for the one you dragged from.
I've updated it so you can drag between 2 listboxes or within itself...
Some of the code it a little redundant, but I'm too tired to clean it up right now.
[attachment deleted by admin]
Quote from: BazzaCAD on January 12, 2008, 12:13:37 AM
It doesn't look like it's possible, because when the OnDragnDropBegin fires, it deselects all the others except for the one you dragged from.
Thanks for the answer, Barry.