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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top