axWebBrowser1.Navigate(textBox1.Text,ref Zero, ref EmptyString, ref EmptyString, ref EmptyString);
ccc=tempstr;//单步调试时程序直接从上一个语句步入该句,用什么来判断DocumentComplete事件是否已完成?怎样等待其完成?
.....
private void axWebBrowser1_DocumentComplete (object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{
  IHTMLDocument2 HTMLDocument = (IHTMLDocument2) axWebBrowser1.Document;
  IHTMLElementCollection links = HTMLDocument.links;
  foreach (HTMLAnchorElementClass el in links)
  {
    tempstr=el.outerHTML;
    listBox1.Items.Add(tempstr);
  }
}