InternetExplorer.Application与-nomerge开关? [英] InternetExplorer.Application with -nomerge switch?
问题描述
我试图创建一个InternetExplorer.Application对象,但我想IE开始与-nomerge开关。有没有办法这样做的?
类似的问题问<一href="http://stackoverflow.com/questions/503041/internetexplorer-application-object-and-cookie-container">这里前一阵子和放大器;它似乎并不可能与通常的InternetExplorer.Application对象;发布答案建议要么采用清除会话cookie的web浏览器或其他方法
不过有也将使用的InPrivate模式有类似作用的另一种选择 - 如果你使用VB.NET
从visualbasic.about.com:
在VB.NET,您可以添加使用浏览>中添加引用选项卡中提及的Shdocvw.dll(在Windows / System32下)),并使用新的的InPrivate模式打开IE 8的一个实例。
&GT;昏暗TheBrowser =新SHDocVw.InternetExplorerMedium
&GT; TheBrowser.Visible = TRUE
&GT; TheBrowser.Navigate(_
&GT;网址:=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")
这篇关于InternetExplorer.Application与-nomerge开关?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!