Solved

Add hyperlink to ListView subitem

Posted on 2007-11-29
2
3,185 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 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