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]
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)
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)
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?