摘要: 一般来说,将WebBrowser控件ScriptErrorsSuppressed 设置为True,可禁止弹出脚本错误对话框,ScriptErrorsSuppressed属性是对其基础COM控件的Silent属性的封装,因此设置ScriptErrorsSuppressed属性和设置其基础COM控件的Slient属性是效果一样的,这一点通过反编译System.Windows.Forms程序集可以证实。不过要注意的是:ScriptErrorsSuppressed 设置为True会禁用所有的对话框,比如提示Activex下载、执行以及安全登录等对话框。如果不想禁止除脚本错误之外的对话框,请使用MSDN 阅读全文
posted @ 2011-08-17 11:32 一修先生 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 最近越来越懒,以免将来忘记了,记录之。把代码贴上了,忽略了框架跨域问题,要是在乎跨域的话,就看看这个吧:http://blog.wahahajk.com/2010/10/c-webbrowseriframe.htmlusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.ComponentModel;namespaceIce{publicclassIceBrowser:IDisposable{#region------F 阅读全文
posted @ 2011-08-17 11:27 一修先生 阅读(755) 评论(0) 推荐(0) 编辑