ITeye博客

vb的WebBrowser控件怎样避免浏览器脚本错误?

summerbell · 2017-11-24 22:35 · 编程语言 · Markdown

解决方案1:

窗体里加入下面代码即可:

 

Private Sub WebBrowser1_DownloadBegin()

WebBrowser1.Silent = True

End Sub

Private Sub WebBrowser1_DownloadComplete()

WebBrowser1.Silent = True

End Sub 

 

解决方案2:

 

选中“禁止脚本调试”复选框启动IE,选择“高级”选项卡,执行“工具→Internet选项”菜单

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。