日期:2014-05-18  浏览次数:21237 次

如何获取webbrowser跳转后的地址,最好附上代码
如题....

------解决方案--------------------
C# code
private void Form1_Load(object sender, EventArgs e)
        {

            this.webBrowser1.Navigating += new WebBrowserNavigatingEventHandler(webBrowser1_Navigating);
        }

        void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
        {
            MessageBox.Show(e.Url);
        }

------解决方案--------------------
private void BrowserEx_DocumentCompleted(object sender,WebBrowserDocumentCompletedEventArgs e)
{
MessageBox.Show(e.Url.ToString());


}