当前位置:编程学习 > C#/ASP.NET >>

在c#中使用HTMLDocument时出现找不到类型或命名空间的错误

IHTMLDocument2 doc=(IHTMLDocument2)axWebBrowser1.Document; 
//HTMLDocument   doc=(HTMLDocument)axWebBrowser1.Document;   
//mshtml.IHtmlElement inp =( mshtml.IHtmlElement)doc.getElemetByID("df");
//HtmlElement   inp=(IHtmlElement)doc.getElementById("cmdSign");
    // inp.click();
代码如上

还有就是HTMLDocument和IHTMLDocument2 到底有什么区别,
我总搞不懂 --------------------编程问答-------------------- 自己顶一个 --------------------编程问答-------------------- 快来顶吧! --------------------编程问答-------------------- 两个对象来的。好像定义两个数一样的 意思。内容是一样的。 --------------------编程问答-------------------- 添加mshtml.dll的引用
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,