Can anyone tell the the recommended way of performing mutiple-item drag-n-drop from a MultiExtended listbox?
The problem is the ListBox selection isn't completed in the MouseDown event, when the drag starts, but in the MouseUp which follows. So neither of the following sequences behave as expected:
1) MouseDown Item 1, MouseUp, MouseDown Item 6, Drag, MouseUp
2) MouseDown Item 1, MouseUp, ShiftDown, MouseDown Item 6, Drag, MouseUp, ShiftUp.
Example 1 drags the wrong Item (1 instead of 6)
Example 2 highlights a range but only drags one item.
I tried programattically selecting and deselecting items (depending upon shift, ctrl and button combinations) but it's a lot of code, it still doesn't quite work right, and I'm just duplicating code already written into the ListBox control.
It shouldn't be this hard!