我试图创建一个InternetExplorer.Application对象,但我想IE开始与-nomerge开关。有没有办法这样做的?
解决方案类似的问题问这里前一阵子和放大器;它似乎并不可能与通常的InternetExplorer.Application对象;发布答案建议要么采用清除会话cookie的web浏览器或其他方法
不过有也将使用的InPrivate模式有类似作用的另一种选择 - 如果你使用VB.NET
从visualbasic.about.com:
在VB.NET,您可以添加使用浏览>中添加引用选项卡中提及的Shdocvw.dll(在Windows / System32下)),并使用新的的InPrivate模式打开IE 8的一个实例。
>昏暗TheBrowser =新SHDocVw.InternetExplorerMedium
> TheBrowser.Visible = TRUE
> TheBrowser.Navigate(_
>网址:=http://visualbasic.about.com)
I'm trying to create a InternetExplorer.Application object, but I want IE to start with the -nomerge switch. Is there any way of doing this?
解决方案Similar question asked here a while ago & it doesn't seem possible with the usual InternetExplorer.Application object; the answer posted suggested either using WebBrowser or alternative ways of clearing session cookies
However there's also another option that would have a similar effect using the InPrivate mode - if you're using VB.NET
From visualbasic.about.com:
In VB.NET, you can add a reference to ShDocVw.dll (in Windows/System32) using the Browse > tab in Add Reference) and open an instance of IE 8 using the new "InPrivate" mode.
> Dim TheBrowser = New SHDocVw.InternetExplorerMedium
> TheBrowser.Visible = True
> TheBrowser.Navigate( _
> URL:="http://visualbasic.about.com")
相关推荐
最新文章