2011-03-09 249 views

回答

1

這裏亞去:

private void WebBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e) 
    { 
     e.Cancel = true; // Cancel the event to avoid default behavior 
     System.Diagnostics.Process.Start(e.Url.ToString()); // Open the link in the default browser 
    } 

編輯:咩,我有幾分鐘。這裏你再去:

Private Sub WebBrowser1_Navigating(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles WebBrowser1.Navigating 
    e.Cancel = True 'Cancel the event to avoid default behavior 
    System.Diagnostics.Process.Start(e.Url.ToString()) 'Open the link in the default browser 
End Sub 
+0

Ick,對不起,我沒有看到帖子上的VB標籤。如果你需要翻譯,我可以做到這一點,但大多數應該複製非常無痛。 – 2011-03-09 23:23:02

+0

非常感謝,它工作得很好。 – Ugleh 2011-03-11 05:12:15