469,963 Members | 2,209 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

Starting a new Internet Explorer process and connecting to it

Hello,
in my VB.net I would like to
1) start a new Internet Explorer process (not a new window of the
running process)
2) and connecting to its WebBrowser control, or InternetExplorerClass,
afterwards.

Basically, creating a new WebBrowser doesn't work because it opens a
new window of the running Internet Explorer, but if I start a new IE
process (with System.Diagnostics.etc..) I don't know how to use it "as
a browser" from my code.

I suppose I should just start a new IE process and then connect to it
using some kind of magic, but:
a. how can I find the IE *I* just started, in a reliable way? I am not
sure that checking for its URL is reliable enough... is there some
sort of process ID to look for?
b. when I find it, how do I "cast" it to my desired object?

As you can see I am really a newbie Windows programmer... (I come from
a Unix background)

Thanks,
Federico
Oct 24 '08 #1
2 3482
Federico Cozzi wrote:
Hello,
in my VB.net I would like to
1) start a new Internet Explorer process (not a new window of the
running process)
2) and connecting to its WebBrowser control, or InternetExplorerClass,
afterwards.

Basically, creating a new WebBrowser doesn't work because it opens a
new window of the running Internet Explorer, but if I start a new IE
process (with System.Diagnostics.etc..) I don't know how to use it "as
a browser" from my code.

I suppose I should just start a new IE process and then connect to it
using some kind of magic, but:
a. how can I find the IE *I* just started, in a reliable way? I am not
sure that checking for its URL is reliable enough... is there some
sort of process ID to look for?
b. when I find it, how do I "cast" it to my desired object?

As you can see I am really a newbie Windows programmer... (I come from
a Unix background)

Thanks,
Federico
Perhaps it would be best if you told us what you are trying to
accomplish so that we could help. If you are trying to control the
webbrowser it is most likely that you want to host a web browser in your
app.

LS
Oct 24 '08 #2
On 24 Ott, 16:21, Lloyd Sheen <a...@b.cwrote:
in my VB.net I would like to
1) start a new Internet Explorer process (not a new window of the
running process)
2) and connecting to its WebBrowser control, or InternetExplorerClass,
afterwards.
Perhaps it would be best if you told us what you are trying to
accomplish so that we could help. *If you are trying to control the
webbrowser it is most likely that you want to host a web browser in your
app.
Simply put: I want to start and control the webbrowser in my app, but
I want it NOT to share the same process of any external IE process
already running.

What happens now:
a. I open an IE, say at www.google.com
b. I run my program, which creates a webbrowser
c. Task manger tells me that this is a new window of the already
running IE, not a new IE process.

Basically, I would like to create a new webbrowser with the parameter
"create a new process, don't reuse existing process" but I can't find
such parameter.

Thanks
Oct 24 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Adam Stirk | last post: by
10 posts views Thread by milk-jam | last post: by
6 posts views Thread by pradeep_TP | last post: by
3 posts views Thread by chethana | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.