解决方案1:
窗体里加入下面代码即可:
Private Sub WebBrowser1_DownloadBegin()
WebBrowser1.Silent = True
End Sub
Private Sub WebBrowser1_DownloadComplete()
WebBrowser1.Silent = True
End Sub
解决方案2:
选中“禁止脚本调试”复选框启动IE,选择“高级”选项卡,执行“工具→Internet选项”菜单
本文提供两种解决方法来禁用IE浏览器中的脚本调试,包括通过修改WebBrowser控件的Silent属性以及调整IE高级设置的方法。
解决方案1:
窗体里加入下面代码即可:
Private Sub WebBrowser1_DownloadBegin()
WebBrowser1.Silent = True
End Sub
Private Sub WebBrowser1_DownloadComplete()
WebBrowser1.Silent = True
End Sub
解决方案2:
选中“禁止脚本调试”复选框启动IE,选择“高级”选项卡,执行“工具→Internet选项”菜单

被折叠的 条评论
为什么被折叠?