Solved

How do I make a web link in a listview box

Posted on 2013-11-12
3
264 Views
Last Modified: 2013-11-27
Hi all
I have a list view in my project and have web address



lvi.SubItems.Add(feed.Link.Value); //Adding Link 12/11/2013 arw

Open in new window


I would like not to display the link but the word download and make it clickable

thanks in advance
0
Comment
Question by:awolarczuk
  • 2
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 39643219
That is a non-standard operation, and you would have to do some magic, like determining which column is clicked on.

var mousePosition = listView.PointToClient(Control.MousePosition);
    var hitTest = listView.HitTest(mousePosition);
    var columnIndex = hitTest.Item.SubItems.IndexOf(hitTest.SubItem);

Open in new window

0
 

Author Comment

by:awolarczuk
ID: 39643222
cool mate where do i put this
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 39643507
Sorry, that would be in the ListView_Click event handler.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

746 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

12 Experts available now in Live!

Get 1:1 Help Now