I would like to work with Internet Explorer Object

ankurnema

New member
Joined
May 27, 2010
Messages
1
Programming Experience
1-3
Hello

I am developing a application where a url is supposed to be passed to Internet Explorer using a search button. But if more than one url passes it should open in same instance. I dont want new instance to be opened every time.

I am using SHDocVw.dll for the same.

I have coded for opening a new IE instance and URL is getting passed successfully. But meanwhile if I close that open IE then I get exception and my program dont work.

Can some one help me with this?
 
I simply use Process.Start and give the URL as the command. The default browser opens to the URL specified without bothering the rest of my program. As far as reusing the same instance of the browser, you can get a list of processes and look for the one you want to reuse. Maybe my approach is too simplistic for you, but I believe in simple, and it works for me!
 
Back
Top