Welcome Guest Search | Active Topics | Sign In | Register

Get URL when mouse hovers on link Options
CluelessInTampa
Posted: Monday, October 4, 2021 5:12:35 PM
Rank: Newbie
Groups: Member

Joined: 10/4/2021
Posts: 2
Can anyone help this hopeless newbie d'oh! with VB code to replicate the functionality found in the Tabbed Browser sample project (and in the off-the-shelf Chrome browser) where when the user moves the mouse over a hyperlink, the link URL gets captured and displayed at the bottom of the form? I don't know the first thing about XAML so the Tabbed Browser code is no help. I'm using a trial license.
eo_support
Posted: Monday, October 4, 2021 5:48:31 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

This would not have anything to do with WPF or XAML. The key to this is to handle the WebView's StatusMessageChanged event. You would then get the new "status message" through WebView.StatusMessage in your event handler.

Hope this helps.

Thanks!
CluelessInTampa
Posted: Tuesday, October 5, 2021 7:54:29 AM
Rank: Newbie
Groups: Member

Joined: 10/4/2021
Posts: 2
eo_support wrote:
Hi,

This would not have anything to do with WPF or XAML. The key to this is to handle the WebView's StatusMessageChanged event. You would then get the new "status message" through WebView.StatusMessage in your event handler.

Hope this helps.

Thanks!


eo_support thank you for the quick response, it works! Here is VB code:

AddHandler web1.StatusMessageChanged, AddressOf DisplayHoverLink

Private Sub DisplayHoverLink(sender As Object, e As EventArgs)
txtMouseoverLink.Text = web1.StatusMessage
End Sub
eo_support
Posted: Wednesday, October 6, 2021 4:42:42 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Great!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.