Make listview select row on mousedown (like explorer)

  • Thread starter Thread starter Paul van der Heu
  • Start date Start date
P

Paul van der Heu

In an application I am writing I use both double click and mousedown, first
for playing a track, second for doing a drag. Problem is that , unlike
explorer, teh listview does not select the item under the mouse, but does
so after a click..

Is there any way to change that behaviour in VB.NET or is there a work
around?

As it is now the on mousedown the previously selected item is dragged, not
the one under the mouse..
 
Set HoverSelection to True.
The MouseHover event will tell you when a hover occurs.
__________________________
The Grim Reaper
 
The Grim Reaper said:
Set HoverSelection to True.
The MouseHover event will tell you when a hover occurs.

True, but I do not wat to select a row when the mouse hovers over it, I
want to select it when I press the mouse button down, as it is selection
takes place after MouseUp
 
Back
Top