?
Solved

How do I make a web link in a listview box

Posted on 2013-11-12
3
Medium Priority
?
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 total points
ID: 39643507
Sorry, that would be in the ListView_Click event handler.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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.
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.
Suggested Courses

771 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