我想通过代码得到我所请求网页的title.我以前用webbrowser.locationname,总是抓不对,帮帮我,我都哭了

解决方案 »

  1.   

    帮你顶一下WEB开发接触的少FORM开发接触的多一点点没有办法帮上你
      

  2.   

    用webbrowserprivate void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
    {
    IHTMLDocument2 HTMLDocument =(IHTMLDocument2)axWebBrowser1.Document; string s = HTMLDocument.title ;
    }
      

  3.   

    需要添加对Microsoft.mshtml的引用using mshtml;
      

  4.   

    我开发的winform前端,IHTMLDocument2 这个类为何没有,我已经添加了mshtml的引用