|
-
Oct 21st, 2006, 02:14 PM
#1
Thread Starter
Junior Member
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!
-
Oct 21st, 2006, 03:20 PM
#2
Thread Starter
Junior Member
Re: How to add hyperlinks in ListView control
-
Oct 21st, 2006, 03:45 PM
#3
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
-
Oct 21st, 2006, 08:16 PM
#4
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.
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Oct 21st, 2006, 08:20 PM
#5
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
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Oct 21st, 2006, 08:46 PM
#6
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|