紧急求救:为什么在activex控件里面webbrowser使用超级不正常?
我的activex控件是在IE客户端里面使用的,使用webbrowser主要的目的是提交一段<form action="***"....></form>的东西,我的做法是:
1.生成一个app.path & "\submit.html"的临时文件
2.WebBrowser1.Navigate "file:///" & App.Path & "/submit.html"
3.在WebBrowser1_DocumentComplete写:
if WebBrowser1.Document.all(i).tagName="INPUT" _
and WebBrowser1.Document.all(i).Type = "submit" then
WebBrowser1.Document.all(i).Click
end if
问题是,根本不产生WebBrowser1_DocumentComplete嘛!其他事件也尝试了,改变WebBrowser1.Navigate 后,不但显示不正常,还不产生任何事件(除了BeforeNavigate2)。
各位高手有什么解决办法吗?谢谢