How to add a tooltip to an extended richtextbox link

I was wondering if there was a way to add tooltip text to a link located in a richtextboxex.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Is this a link text inside of a richtextbox?\
or can you use a LinkLabel control?
gbarcalowAuthor Commented:
No I need a tooltip for the link text inside the richtextbox
This is close as I can get

   Private Sub RichTextBox1_LinkClicked(ByVal sender As Object, ByVal e As System.Windows.Forms.LinkClickedEventArgs) Handles RichTextBox1.LinkClicked
        tipView.SetToolTip(Me.RichTextBox1, "Here to link")
    End Sub
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

gbarcalowAuthor Commented:
I have to following code
my problem is that "txtData.GetCharIndexFromPosition" is not returning the expected values.
To me it seems to choose a random integer for each line that you move over.
I think that if I could get the real index from txtData.GetCharIndexFromPosition this code would work.

    Private Sub txtData_MouseMove(ByVal sender As Object, ByVal e As MouseEventArgs) Handles txtData.MouseMove

        Dim pt As Point = New Point(e.Y, e.Y)
        Dim link As Integer = txtData.GetCharIndexFromPosition(pt)

        If isLink(link) = True Then
            tt_txtData.Active = True
            tt_txtData.SetToolTip(txtData, "Click Here to open document")
            tt_txtData.Active = False
        End If

    End Sub

    Private Function isLink(ByVal i As Integer)
        Dim sData As String = txtData.Text

        Dim strBeg As String = Replace(Strings.Left(sData, i), vbCrLf, " ")
        Dim strEnd As String = Replace(Strings.Right(sData, Len(sData) - i), vbCrLf, " ")

        Dim strComplete = Strings.Right(strBeg, Len(strBeg) - InStrRev(strBeg, " "))
        strComplete += Strings.Left(strEnd, InStr(strEnd, " "))

        If UCase(Strings.Left(strComplete, 7)) = "HTTP://" Or _
            UCase(Strings.Left(strComplete, 7)) = "FILE://" Then

            Return True
            Return False
        End If

    End Function
It works if each line has a vbNewLine on the end, and the Http is not the last line of the code.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gbarcalowAuthor Commented:
So that pretty much rules out using word wrap huh?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.