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