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 2 8483
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******** ************@19 4.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
"The Grim Reaper" <gr*********@bt openworld.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 represents a field from the record.
I implemented a context menu so the user can "Copy" the cell content to the
clipboard with this code:
|
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.
this.imageList.Items.EnsureVisible();
this.imageList.Items.Selected = true;
That works fine. Use the mouse to select index 4 and again, works sweetly.
|
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 details. The user should click
the Save button after each change, but of course that doesn't always happen.
If the user makes changes and doesn't click Save, the app displays a message
box asking if they'd like to save their changes. This box...
|
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 and sets the
insertion point to where clicked.
I've tried several options inheriting from TextBox but none work quite
right.
Thanks Much,
|
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
doubleClick event is:
Private Sub SongList_DoubleClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles SongList.DoubleClick
If SongList.SelectedItems.Count = 0 Then
Exit Sub
| |
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 focused.
This is only the matter for the secondly added ListView!!! The first one
works perfectly!!
|
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 doesn't seem to work in .net
when the textbox receives focus via a mouse click.
Jeffrey and Shane both advised how to get a mouse click to select all
the text (thank you both) but using the mousedown or mouseup events
doesn't work the way I want it...
|
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.
Very simple. I would like to create listviewitem's for display in a
listview control.
The listview items need to contain properties from Internet Explorer
windows i've managed to collect into an arraylist.
|
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 events.
I will create a class which conains the listview. Should I inherit this
class from any existing class? If yes, which class should I inherit from?
Or, should I just inherit my class from listview and add my add my
additional features?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |