Results 1 to 2 of 2

Thread: Getting Link in WebBrowser Control?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    78

    Getting Link in WebBrowser Control?

    Is there a way to get the link in a WebBrowser when the user hovers over it?

    Like in IE and Firfox the statusbar shows the link if i hover over a google result

    How can i get that?

    thanks

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Getting Link in WebBrowser Control?

    Yes, just use the StatusTextChanged event which will fire when you mouse over a link. You can use the StatusText property of the browser in this event to get the link.

    For example:

    Code:
        Private Sub WebBrowser1_StatusTextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles WebBrowser1.StatusTextChanged
            Me.Text = WebBrowser1.StatusText
        End Sub
    this would change the forms caption text, so just replace me.text with whatever control you actually want to display the text.

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