我使用此代码打开一个网站:
private void OpenBrowser(string url)
{
object sender;
WebBrowserDocumentCompletedEventArgs e;
ie.DocumentComplete += (DWebBrowserEvents2_DocumentCompleteEventHandler)
new DWebBrowserEvents2_DocumentCompleteEventHandler(webBrowser1_DocumentCompleted);
wb = (IWebBrowserApp) ie;
wb.Visible = true;
object o = null;
wb.Navigate(url, ref o, ref o, ref o, ref o);
}
private void webBrowser1_DocumentCompleted(object sender, ref object e)
{
}
该网站已打开,但我想访问该网页的文档流以访问页面的内容。是否有可能做到这一点?