How to create new instance with existing instance

Hi all,

From my application, I am invoking IE browser window and sending url using the following:

System.Diagnostics.Process.Start(strReportsURL).

If there is no browser window, my application should open new browser

window using the said url. If browser window already exists with the

above url, then it should create new window with the url and

credentials (it should open with existing username and password, like

yahoo and rediffmail).

Regards

Helan

[473 byte] By [Helan] at [2007-12-26]
# 1
I think this is a feature of IE. If you always want to open your site in IE instead of the default browser, you can do:

System.Diagnostics.Process.Start("iexplore", strReportsURL)

ThE_lOtUs at 2007-9-4 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
Thanks.

My default browser is IE only. The above statement always open my url

in a new window only and asking for credentials. But that should not be

the case.

Helan at 2007-9-4 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 3
Instead of using process the below code help us to create new instance with credentials:

Imports SHDocVw

Dim objIE As New SHDocVw.InternetExplorer

objIE.Visible = True

objIE.Navigate(strReportsURL)

Helan at 2007-9-4 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 4

Okay, as an example... that don't work( therefore the question)

Dim ieApp As Object ' Declare variable to hold the object reference.

Set ieApp = GetObject("C:\Program Files\Internet Explorer\iexplorer.exe", "iexplorer")
Set ieApp = GetObject("C:\Program Files\Internet Explorer\iexplorer.exe", "iexplorer.application")
'Then use ieApp to access Microsoft IE's Browser Object Model objects here
ieApp.Quit
Set ieApp = Nothing

Any MS experts that know this one?

Open2Knight at 2007-9-4 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified