Results 1 to 6 of 6

Thread: How to add hyperlinks in ListView control

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2006
    Posts
    24

    Post 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!

  2. #2

    Thread Starter
    Junior Member
    Join Date
    May 2006
    Posts
    24

    Re: How to add hyperlinks in ListView control

    Anyone please?

  3. #3
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    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

  4. #4
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    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."


  5. #5
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    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."


  6. #6
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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
  •  



Click Here to Expand Forum to Full Width