は、ナビゲーションをキャンセルし、他のブラウザにURLを送信するためにNavigating
イベントを使用してください。
Private mFirstLoadComplete As Boolean = False
Private Sub Form5_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("www.stackoverflow.com")
End Sub
Private Sub WebBrowser1_Navigated(sender As Object, e As System.Windows.Forms.WebBrowserNavigatedEventArgs) Handles WebBrowser1.Navigated
mFirstLoadComplete = True
End Sub
Private Sub WebBrowser1_Navigating(sender As Object, e As System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles WebBrowser1.Navigating
If Not mFirstLoadComplete Then Return
e.Cancel = True
WebBrowser2.Navigate(e.Url)
End Sub
ありがとうございます!私のために働く –