华中农业大学面积:怎样用VB自动关闭IE的脚本错误窗口?

来源:百度文库 编辑:神马品牌网 时间:2024/04/29 15:53:39

方便很多,介绍二个方法
一可以将Webbrowser控件的报错设置为安静模式,就是它的属性里的silent设成true
二加入代码:

Private Sub WebBrowser1_DownloadBegin()
WebBrowser1.Silent = True
End Sub
Private Sub WebBrowser1_DownloadComplete()
WebBrowser1.Silent = True
End Sub

共同关心....