brene

Hi all,
Is there a way to control Internet Explorer windows that are already open I'm already able to use the IE object to create new windows and navigate to pages etc but want to be able to re-use any currently open windows.

The reason behind this is that a program we use requires the user to login via some JSP pages and then they are able to navigate around the program (web based). I want to test to see if any IE windows are already viewing these pages (hence logged in) and re-use one of those pages - sending a new address that the user has selected from a seperate application.

Also, is it possible to control any application that has already been opened by the user I know about System.Diagnostics.Process but is there a way to cast that 'handle' into the applications type

Thanks


Re: Visual C# General How can I control already open IE windows?

Jeffrey Knight


Hi Brene
The answer is "yes" and it requires API calls and SendKeys <shudder>.
I've written code that does this before: I'll try to dig it up and distill it into a short sample for you.
It's not elegant, but it works.
-Jeff






Re: Visual C# General How can I control already open IE windows?

Karthikeya Pavan Kumar .B

Check this Capturing the Running IE Instances in C#






Re: Visual C# General How can I control already open IE windows?

brene

I ended up using SendKeys and creating a new instance of IE each time a user clicks on the button.

Some helpful links I came across:

http://msdn2.microsoft.com/en-us/library/66ahbe6y(vs.71).aspx

http://www.webtropy.com/articles/InternetExplorer.asp Internet%20explorer