Solved

How do I make a web link in a listview box

Posted on 2013-11-12
3
271 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 500 total points
ID: 39643507
Sorry, that would be in the ListView_Click event handler.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Suggested Courses

732 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