c#的webbrowser常用属性方法总结
·
//载入一个空白页面
webBrowser1.Navigate("about:blank");//设置webbrowser可编辑,需要webbrowser提前Navigate一个页面
//方法一
mshtml.IHTMLDocument2 doc =webBrowser1.Document.DomDocument as mshtml.IHTMLDocument2;
doc.designMode = "on";//on 编辑模式;off 浏览模式
//方法二
webBrowser1.Document.ExecCommand("EditMode", false, null);
webBrowser1.Document.ExecCommand("LiveResize", false, null);
更多推荐



所有评论(0)