Two IE Browser Controls showing two different webpages

Can someone show me the code required to have 2 IE Browser Controls on the form, each with a different URL appearing.
A side request would be to tell me any way to make those URL's undetectable. (ie. right click, properties).
rbendAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mcriderCommented:
There is a problem with the browser control.  It will not allow more than one browser control on a form... However, you can get around this.

This is going to get complicated real quick... Please do everything exactly as you see it in the example...


1) create a new project.

2) add the webbrowser control to the project.

3) add a webbrowser control to Form1 and call it WebBrowser1.

4) add a new form to the project and call it Form2.

5) add a picture control to Form2 and call it Picture1.

6) add a webbrowser control inside Picture1 on Form2 and call it WebBrowser2.  This webbrowser control MUST be a child of the picturebox.

7) add the following code to the DECLARATIONS Section of Form1:

'---------------------------------------

    Public eFrame As Object
    Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
   
    Private Sub Form_Load()
        Load Form2
        Set eFrame = Form2.Picture1
        With WebBrowser1
            .Top = 0
            .Left = 0
            .Height = Me.Height / 2 - 420
            .Width = Me.Width - 120
            .Navigate "www.caas.com"
        End With
       
        With eFrame
            .Top = WebBrowser1.Height
            .Left = 0
            .Height = WebBrowser1.Height
            .Width = WebBrowser1.Width
            Form2.WebBrowser2.Top = 0
            Form2.WebBrowser2.Left = 0
            Form2.WebBrowser2.Height = .Height
            Form2.WebBrowser2.Width = .Width
            .ZOrder
        End With
        Form2.WebBrowser2.Navigate "www.yahoo.com"
        SetParent eFrame.hWnd, Form1.hWnd
    End Sub
   
'---------------------------------------

8) Run the program... in form1, you will see 2 browser windows...  The top browser will be my company's web page and the bottom will be yahoo!



Cheers!

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rbendAuthor Commented:
thanks as always mcrider..
0
mcriderCommented:
Glad I could help! Thanks for the points!


Cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.