平安证券股票:怎样用VB自动关闭IE的脚本错误窗口?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/29 19:58:47

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

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

共同关心....