WebBrowser_NewWindow Event
Ok this event is called when you click on a link within the webbrowser that opens a new window, Originally it would open IE but i have changed mine so it doesn't but i need to get the links URL that was clicked to do what i need to do(Which is open a new tab with that URL) How do i get the URL of the link clicked?
My code so far:
VB.NET Code:
Private Sub currentBrowser_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles currentBrowser.NewWindow
e.Cancel = True
If My.Settings.NewWindow = False Then
tabs.AddTab(I NEED URL ARGUEMNT HERE)
Else
Process.Start("Tinternet.exe", I NEED URL ARGUEMNT HERE)
End If
End Sub