Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Opening URL in new instance of IE


Message #1 by ashay@w... on Mon, 22 Jul 2002 07:40:58
ashay,
Thanks for the help, it works great now.
J


                                                                                                                                    
                      ashay@w...                                                                                            
                      m                        To:       "professional vb" <pro_vb@p...>                              
                                               cc:                                                                                  
                      07/25/2002 07:55         Subject:  [pro_vb] Re: Opening URL in new instance of IE                             
                      AM                                                                                                            
                      Please respond to                                                                                             
                      "professional vb"                                                                                             
                                                                                                                                    
                                                                                                                                    



hi,
i m using the same thing....and it works over here.....

regds,
ashay

>
I 'm using IE 5.5 and W2K






ashay@w...

                      m                        To:       "professional vb"
<pro_vb@p...>

cc:

                      07/24/2002 10:25         Subject:  [pro_vb] Re:
Opening URL in new instance of IE

AM

                      Please respond
to

                      "professional
vb"








hi jason,

wat IE/OS r u using????Hv u added the Microsot Internet Control
REferenece.It is Shdocvw.dll file.

regds,
ashay

>
Ron,

Thanks for the reply. I have tried that already. I got the following error
message:
"Class does not support Automation or does not support expected interface"

The error occurs at the "Set obj = New InternetExplorer" statement.

'My code

Private Sub Form_Load()
    Open_IE
End Sub

Public Sub Open_IE()
  Dim obj As InternetExplorer
  Set obj = New InternetExplorer
  obj.Visible = True
  obj.Navigate2 "http://www.worldnews.com"
End Sub

Any suggestion would be much appreciated. Thanks.

Jason





                      "Lindahl,
Ron"

                      <Ron.Lindahl@L...       To:       "professional
vb" <pro_vb@p...>
                      etChef.com>
cc:

                                                 Subject:  [pro_vb] Re:
Opening URL in new instance of IE
                      07/22/2002 08:56
AM

                      Please respond
to

                      "professional
vb"








To use that code, you need to add a reference to Microsoft Internet
Controls
in your project.

-----Original Message-----
From: jleung@m... [mailto:jleung@m...]
Sent: Monday, July 22, 2002 9:43 AM
To: professional vb
Subject: [pro_vb] Re: Opening URL in new instance of IE




Ashay,

Can you tell me how you apply the following code(Open_IE), I get an error
when I try to run it.

Thanks,

Jason




                      ashay@w...

                      m                        To:       "professional vb"
<pro_vb@p...>
                                               cc:

                      07/22/2002 03:11         Subject:  [pro_vb] Re:
Opening URL in new instance of IE
                      AM

                      Please respond to

                      "professional vb"








hi,

i hv resolved the problem.my code is as follows:

public sub Open_IE()
  Dim obj As InternetExplorer
  Set obj = New InternetExplorer
  obj.Visible = True
  obj.Navigate2 "http://www.worldnews.com"
end sub


this opens  the url in a new window of ie.
regds,
ashay



> Hi,

> I want to open a url into a new instance of IE.I m using ShellExecute
API.
M> y code is as follows:

> Private Declare Function ShellExecute Lib "shell32.dll"
A> lias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String,
B> yVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory
As
S> tring, ByVal nShowCmd As Long) As Long

> ShellExecute Me.hwnd, "Open", "http://www.worldnews.com", vbNullString,
v> bNullString, 0

> But when i use this ,the url is opened in a currently open IE window.I
w> ant to open the URL in a new Instance of IE.Can anyone help me in the
s> ame.

> Any suggs,alternative methods??

> Thanx in advance.

> regds,
a> shay

>

---
Visual C# - A Guide for VB6 Developers
This book will make it easy to transfer your skills
from Visual Basic 6 to C#, the language of choice
of the .NET Framework.
http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059








---
Visual C# - A Guide for VB6 Developers
This book will make it easy to transfer your skills
from Visual Basic 6 to C#, the language of choice
of the .NET Framework.
http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059



---
Visual C# - A Guide for VB6 Developers
This book will make it easy to transfer your skills
from Visual Basic 6 to C#, the language of choice
of the .NET Framework.
http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059







---
Visual C# - A Guide for VB6 Developers
This book will make it easy to transfer your skills
from Visual Basic 6 to C#, the language of choice
of the .NET Framework.
http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059







---
Visual C# - A Guide for VB6 Developers
This book will make it easy to transfer your skills
from Visual Basic 6 to C#, the language of choice
of the .NET Framework.
http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059







  Return to Index