List box multiple selection problem...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robin Tucker

    #1

    List box multiple selection problem...

    Apologies for the report, but this problem is doing my head in! :

    I have a list box (just happens to be owner draw). When I select multiple
    items using the CTRL key, the items I have selected become highlighted
    (obviously). Now, when I click on one of the selected items in order to
    initiate a Drag operation, the other items are deselected and the item I
    have just clicked becomes the only one selected!

    I tested this with a normal list box (not owner draw) on a simple form. I
    can select multiple rows, but each time, when I select one of the selected
    items to begin a drag, its as if a new selection has taken place. Is there
    any way around this? The listbox control seems to do this *before* I get
    the Mousedown event, so I cannot see what I can do to change this behaviour.



    Thanks


    Robin


Working...