Solved

Add hyperlink to ListView subitem

Posted on 2007-11-29
2
3,202 Views
Last Modified: 2013-11-07
Using a ListView control to display data.  I want to make one of the columns (i.e. subitems) a hyperlink to a URL.  A number of posts I've read discuss using the SelectedIndexChanged event to start a process based on which row was clicked.  However, I only want the hyperlink to fire if a specific subitem/cell is clicked, not anywhere on the item.  Would also be nice if the mouse cursor changed when mouse over that sepcific subitem/cell too.

Using VB.NET 2005 compiling for .NET 2.0.
0
Comment
Question by:sj_hicks
2 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 20379193
you can use the HitTest method inside the SelectedIndexChanged event:
http://msdn2.microsoft.com/en-us/library/w8ssfa8a.aspx

this will tell you which sub item has been clicked.
0
 
LVL 7

Author Closing Comment

by:sj_hicks
ID: 31623401
Sweet, thanks Jaime.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now