小编eva*_*van的帖子

如何将windows窗体浏览器控件的文档对象转换为mshtml.IHTMLDocument2

试图让这条线工作

 mshtml.IHTMLDocument2 doc2 = webBrowser1.Document as mshtml.IHTMLDocument2;
Run Code Online (Sandbox Code Playgroud)

但收到错误消息

错误10无法通过引用转换,装箱转换,拆箱转换,换行转换或空类型转换将类型'System.Windows.Forms.HtmlDocument'转换为'mshtml.IHTMLDocument2'

以前我没见过.我做了一些搜索,似乎很多其他人已经开始使用这条线了?任何帮助/解释非常感谢!谢谢!

c# webbrowser-control winforms

8
推荐指数
1
解决办法
6734
查看次数

标签 统计

c# ×1

webbrowser-control ×1

winforms ×1