473,320 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Make listview select row on mousedown (like explorer)


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..
--
Bill Gates can't guarantee Windows,
how are you gonna guarantee my safety..
--John Crichton - Farscape pilot
Nov 20 '05 #1
2 8454
Set HoverSelection to True.
The MouseHover event will tell you when a hover occurs.
__________________________
The Grim Reaper

"Paul van der Heu" <pv**@xs4all.nl> wrote in message
news:Xn********************@194.134.2.2...

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..
--
Bill Gates can't guarantee Windows,
how are you gonna guarantee my safety..
--John Crichton - Farscape pilot

Nov 20 '05 #2
"The Grim Reaper" <gr*********@btopenworld.com> wrote :
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

--
Bill Gates can't guarantee Windows,
how are you gonna guarantee my safety..
--John Crichton - Farscape pilot
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Richard | last post by:
Hi. I use a ListView to display data in tabular form. Each ListView row corresponds to a data record. The ListView Item of the record is the record key or code. Each SubItem in that row...
5
by: joseph.inglis | last post by:
Hi group, Someones gonna answer this in two seconds flat but im tearing my hair out. Create a form, add a listview, add 5 items and programmatically select item at index 3. ...
2
by: David Anderson | last post by:
I'm working on a Windows app that has a ListView containing a bunch of items. When the user clicks on an item, the app displays the item'd details. The user then has the opportunity to edit these...
12
by: Gene Hubert | last post by:
How do I make a TextBox behave like the address bar in IE? That is... If focus is not on the tb, select all text if clicking on the tb or tabbing into the tb. Clicking again deselects the text...
0
by: Lloyd Sheen | last post by:
I am trying to do two things from a listview. First is on a double click to perform an action on the object which was double clicked. FullRowSelect is set to true for the Listview. Code for the...
6
by: Josef Brunner | last post by:
Hi, I have a problem using two ListView controls on one and the same form: Problem: The second ListView is never focused. No matter where I "click" non of the items within the ListView is...
8
by: cj | last post by:
I asked this question a couple of days ago but am just now looking at it again. I used to use the textbox gotfoucs event to have all the text in the textbox selected when it gotfocus. That...
12
by: garyusenet | last post by:
I have had no replies to my previous post so perhaps I didn't write it good enough. Please excuse new thread but i wanted to break from the last thread hopefully this thread will be better. ...
1
by: a | last post by:
Hi I would like to add some additional custom features to the listview, like cell editing. The created object will be added to the form as part of the GUI, and it should be able to handle...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.