Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: Launching Internet Explorer from a VB application


Message #1 by "Balajewicz, Greg" <Greg.Balajewicz@A...> on Thu, 24 May 2001 09:14:50 -0500
Hello,



This may be a bit of an off topic question but I could not find a better

place to ask.



I want to start IE from within a VB application. I use this code:

	Dim IE As SHDocVw.InternetExplorer

     	Set IE = CreateObject("InternetExplorer.Application")

      IE.Navigate ("localhost")

      IE.Visible = True



It works fine except that I find that the IEs created using this method are

all of the same application so to say, that is, they share the same session.

This is like using File->New in IE to create another window - it shares the

session of the IE which created it. I need to be able to create multiple,

independent ie instances. 



I search msdn and did not find anything useful. Any thoughts? 



Thanks in advance!

Greg



Message #2 by Steve Driscoll <SteveD@D...> on Thu, 24 May 2001 15:32:09 +0100
What if you use 'new' instead of CreateObject?



-----Original Message-----

From: Balajewicz, Greg [mailto:Greg.Balajewicz@A...]

Sent: 24 May 2001 15:15

To: ASP components

Subject: [asp_components] Launching Internet Explorer from a VB

application





Hello,



This may be a bit of an off topic question but I could not find a 

better

place to ask.



I want to start IE from within a VB application. I use this code:

	Dim IE As SHDocVw.InternetExplorer

     	Set IE =3D CreateObject("InternetExplorer.Application")

      IE.Navigate ("localhost")

      IE.Visible =3D True



It works fine except that I find that the IEs created using this method 

are

all of the same application so to say, that is, they share the same 

session.

This is like using File->New in IE to create another window - it shares 

the

session of the IE which created it. I need to be able to create 

multiple,

independent ie instances.



I search msdn and did not find anything useful. Any thoughts?



Thanks in advance!

Greg



Message #3 by "Balajewicz, Greg" <Greg.Balajewicz@A...> on Thu, 24 May 2001 10:03:35 -0500
I tried using New as well and the same effect. I think New uses 

CreateObject

under the covers anyway.



-----Original Message-----

From: Steve Driscoll [mailto:SteveD@D...]

Sent: Thursday, May 24, 2001 10:32 AM

To: ASP components

Subject: [asp_components] RE: Launching Internet Explorer from a VB

applic ation





What if you use 'new' instead of CreateObject?



-----Original Message-----

From: Balajewicz, Greg [mailto:Greg.Balajewicz@A...]

Sent: 24 May 2001 15:15

To: ASP components

Subject: [asp_components] Launching Internet Explorer from a VB

application





Hello,



This may be a bit of an off topic question but I could not find a 

better

place to ask.



I want to start IE from within a VB application. I use this code:

	Dim IE As SHDocVw.InternetExplorer

     	Set IE =3D CreateObject("InternetExplorer.Application")

      IE.Navigate ("localhost")

      IE.Visible =3D True



It works fine except that I find that the IEs created using this method 

are

all of the same application so to say, that is, they share the same 

session.

This is like using File->New in IE to create another window - it shares 

the

session of the IE which created it. I need to be able to create 

multiple,

independent ie instances.



I search msdn and did not find anything useful. Any thoughts?



Thanks in advance!

Greg



Message #4 by "Earls, Michael (CORP)" <Michael.Earls@C...> on Thu, 24 May 2001 15:28:33 -0400
Try to call the IE.Window.Open Method...



Michael Earls



-----Original Message-----

From: Balajewicz, Greg [mailto:Greg.Balajewicz@A...]

Sent: Thursday, May 24, 2001 7:15 AM

To: ASP components

Subject: [asp_components] Launching Internet Explorer from a VB

application





Hello,



This may be a bit of an off topic question but I could not find a better

place to ask.



I want to start IE from within a VB application. I use this code:

	Dim IE As SHDocVw.InternetExplorer

     	Set IE = CreateObject("InternetExplorer.Application")

      IE.Navigate ("localhost")

      IE.Visible = True



It works fine except that I find that the IEs created using this method are

all of the same application so to say, that is, they share the same session.

This is like using File->New in IE to create another window - it shares the

session of the IE which created it. I need to be able to create multiple,

independent ie instances. 



I search msdn and did not find anything useful. Any thoughts? 



Thanks in advance!

Greg



Message #5 by "Balajewicz, Greg" <Greg.Balajewicz@A...> on Fri, 25 May 2001 07:40:09 -0500
The way I declared IE, IE does not have a Window property/method. 

Should it

be of some other type ?



-----Original Message-----

From: Earls, Michael (CORP) [mailto:Michael.Earls@C...]

Sent: Thursday, May 24, 2001 3:29 PM

To: ASP components

Subject: [asp_components] RE: Launching Internet Explorer from a VB

applic ation





Try to call the IE.Window.Open Method...



Michael Earls



-----Original Message-----

From: Balajewicz, Greg [mailto:Greg.Balajewicz@A...]

Sent: Thursday, May 24, 2001 7:15 AM

To: ASP components

Subject: [asp_components] Launching Internet Explorer from a VB

application





Hello,



This may be a bit of an off topic question but I could not find a 

better

place to ask.



I want to start IE from within a VB application. I use this code:

	Dim IE As SHDocVw.InternetExplorer

     	Set IE =3D CreateObject("InternetExplorer.Application")

      IE.Navigate ("localhost")

      IE.Visible =3D True



It works fine except that I find that the IEs created using this method 

are

all of the same application so to say, that is, they share the same 

session.

This is like using File->New in IE to create another window - it shares 

the

session of the IE which created it. I need to be able to create 

multiple,

independent ie instances.



I search msdn and did not find anything useful. Any thoughts?



Thanks in advance!

Greg



Message #6 by Steve Driscoll <SteveD@D...> on Fri, 25 May 2001 14:16:10 +0100
When I've used IE in a VB App, here's how I've declared it...



Private m_oIE As Object



...



Set m_oIE =3D CreateObject("InternetExplorer.Application")

m_oIE.Navigate "blah.com"



- not sure if that solves your problem



-----Original Message-----

From: Balajewicz, Greg [mailto:Greg.Balajewicz@A...]

Sent: 25 May 2001 13:40

To: ASP components

Subject: [asp_components] RE: Launching Internet Explorer from a VB ap

plic ation





The way I declared IE, IE does not have a Window property/method. =3D

Should it

be of some other type ?

Message #7 by Hal Levy <hal.levy@s...> on Fri, 25 May 2001 10:43:13 -0400



NEW does not use CreateObject under the covers.



From what I remember- it was a while ago- NEW performs much worse than

CreateObject.



I never use NEW so the article didn't stick in my mind that well.



Hal Levy

StarMedia Network, Inc.

Intranet Development Manager



-----Original Message-----

From: Balajewicz, Greg [mailto:Greg.Balajewicz@A...]

Sent: Thursday, May 24, 2001 11:04 AM

To: ASP components

Subject: [asp_components] RE: Launching Internet Explorer from a VB ap

plic ation





I tried using New as well and the same effect. I think New uses 

CreateObject

under the covers anyway.



-----Original Message-----

From: Steve Driscoll [mailto:SteveD@D...]

Sent: Thursday, May 24, 2001 10:32 AM

To: ASP components

Subject: [asp_components] RE: Launching Internet Explorer from a VB

applic ation





What if you use 'new' instead of CreateObject?



-----Original Message-----

From: Balajewicz, Greg [mailto:Greg.Balajewicz@A...]

Sent: 24 May 2001 15:15

To: ASP components

Subject: [asp_components] Launching Internet Explorer from a VB

application





Hello,



This may be a bit of an off topic question but I could not find a 

better

place to ask.



I want to start IE from within a VB application. I use this code:

	Dim IE As SHDocVw.InternetExplorer

     	Set IE =3D CreateObject("InternetExplorer.Application")

      IE.Navigate ("localhost")

      IE.Visible =3D True



It works fine except that I find that the IEs created using this method 

are

all of the same application so to say, that is, they share the same 

session.

This is like using File->New in IE to create another window - it shares 

the

session of the IE which created it. I need to be able to create 

multiple,

independent ie instances.



I search msdn and did not find anything useful. Any thoughts?



Thanks in advance!

Greg





---


  Return to Index