473,386 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 3619
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: SunshineGirl | last post by:
I'm trying to receive events from a running instance of Internet Explorer. So far I've only been able to receive events from an instance I launch from code, but I need to receive events from all...
5
by: Adam Stirk | last post by:
Hi, I have a application that I need to create multiple new "iexplore.exe" processes (show more than once in taskmanger) and control them using the shdocvw/mshtml. I am able control Internet...
12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
10
by: Edlueze | last post by:
I am developing some Data Access Pages (DAP) using Microsoft Access 2003 on Microsoft Windows XP. When I try to open these pages (located on my C: drive), the display of the data access page is...
10
by: milk-jam | last post by:
I'm trying to write a log which save each time internet explorer is opened or closed and all of the url which where visited? Any help is greatly appreciated.
6
by: pradeep_TP | last post by:
I am facing a strange problem with my web site. Afer reinstalling the web application on the web server, I am getting a dialog box for each page. The dialog box has the following information. ...
3
by: chethana | last post by:
I am using copmaq ipaq pocket pc 2002 h3600 series. This device is synchronized with desk top pc running on windows 2000. I want this pocket pc to be conncted to internet .Kindly help ...
1
by: Tombo | last post by:
I've been studying this solution, yet can not duplicate. http://www.thescripts.com/forum/thread351439.html I have a form with a single button. When the button is clicked, I want Internet...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.