changing HoverSelection delay on a ListView RRS feed

  • Question

  • I want to allow a user to drag-drop from a listview to another app, so I implemented such that in the ListView's MouseDown event, I take the selected item's tag (which has the command/arguments encoded as a string) and call DragDrop with this string. problem is, the item has to be selected first, meaning MouseUp needs to occur. but I couldn't get this working from the MouseUp event, so I tried setting HoverSelection to true so the item is highlighted upon mouseover. problemt here is that there's a noticeable delay. basically I want the user to just mouse-down over an entry and immediately drag it - is there a better way to do this, or can I at least change the HoverSelection delay so that it auto-selects right away?
    Friday, October 17, 2008 4:53 PM


  • Use the MouseDown event to start the drag.  Get the item that was clicked with ListView.GetItemAt() instead of waiting for the selection stuff to complete.
    Friday, October 17, 2008 7:10 PM