How to add hyperlinks in ListView control
Hello
While working on a current VB 6.0 project, I found myself unable to create blue-colored, underlined hyperlinks as SubItems in ListView control which when clicked launch a website.
For example; I need to add websites URLs in the SubItems and when they are clicked they should take you to that website.
I searched and searched but nothing came up which can solve my problem.
Is there anyone who can tell me if it is even possible with ListView control in VB 6.0? If yes, then how? If no, then is there any powerful third-party component that can solve my problem? :)
Thanks in advance!
Re: How to add hyperlinks in ListView control
Re: How to add hyperlinks in ListView control
You can play with the colors but I don't think you can underline the text in a listsubitem
Re: How to add hyperlinks in ListView control
How about floating a label over the item that you want to have a hyperlink. I think RobDog posted some code that uses a label and the mouse over event to similate a hyperlink.
Re: How to add hyperlinks in ListView control
You might be better off using a Richtextbox to mimic a Listview. Take a look at these Links:
Link 1
Link 2
Re: How to add hyperlinks in ListView control
You could probably acheive this with subclassing, but I don't know how to do it.
I would probably consider the other options already suggested.