Solved

How do I make a web link in a listview box

Posted on 2013-11-12
3
265 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

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…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

786 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