use*_*951 5 vb.net automation shdocvw
一些答案似乎表明我应该使用 SHDocVw.InternetExplorerMedium 来实现 Internet Explorer 自动化。
Internetexplorer 媒体和 Internet Explorer 之间有什么区别?
我尝试运行此代码,但出现对象断开连接异常
ias.IntExpMed = New SHDocVw.InternetExplorerMedium
ias.IntExpMed.Navigate("http://wikipedia.com")
waitTing(1)
ias.IntExpMed.Navigate("http://google.com")
Run Code Online (Sandbox Code Playgroud)
实际上,如果我逐步执行该程序,该对象将在之后立即断开连接
ias.IntExpMed.Navigate("http://wikipedia.com")
Run Code Online (Sandbox Code Playgroud)