Results 1 to 6 of 6

Thread: MS Browser control

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Garden Grove, CA, USA
    Posts
    110
    In the MS internet control, with the newwindow2 event, it will popup an IE window. But i don't want the IE window, i want a custom window that i created at design time pop out with a MS internet control in it and navigate the url...
    how can i do that?
    ngphuocthinh

  2. #2
    Junior Member
    Join Date
    Feb 2000
    Location
    Mesa, AZ, USA
    Posts
    16

    Cool WebBrowserObject

    Hey ThinH. This should solve your problem.
    You need to SET the ppDisp in the NewWindow2 Event to your new form's webBrowser object. Should go like this:
    <Code>
    Public Sub NewWindow2(ppDisp as Object, Cancel as Boolean)

    Set ppDisp = Form2.WebBrowser1.Object
    Form2.Show

    End Sub
    </Code>

    If that doesnt work or you need a second instance of your original browser...let me know. [email protected]

    lata

  3. #3
    Guest
    I have an even better code:

    Code:
    Private Sub webbrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
        Dim F As New observe
        F.Show
        Set ppDisp = F.webbrowser1.object
    End Sub
    This will open a whole new window using your program and take you to the link that you requested to open a new window with.

  4. #4
    Junior Member
    Join Date
    Feb 2001
    Location
    Madrid, Spain
    Posts
    17

    Question New webbrowser window

    As for this post...Long time no see!

    I've been searching for this code recently and was pretty happy to find it in the Archives of this forum.

    My VB5 says "User defined type not defined" to the attempt to create a New "observe".

    Am I missing something (VB 6, perhaps)?

    Matthew? Anyone?

    M Thanx,

    Shaun.

  5. #5
    Junior Member
    Join Date
    Feb 2001
    Location
    Madrid, Spain
    Posts
    17

    Thumbs up Okay, okay, I'm learning...

    "observe" was (of course) the name of the form.

    I just figured that out!

    Ahem...

    Gentle please, I'm just a beginner...

    (Code works great now though! Love this forum!)

    Shaun.

  6. #6
    Guest
    Eh, sorry for that.

    observe was the name of my form when I created my lil webbrowser which was never completed.

    observe is same as Form1 or whatever your form is.

    Truly sorry about that, guess I forgot to change it when I took it from my WebBrowser project.


    ..as for the thread: wow, this is old!

    Hehe, I didn't even have a signature yet .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width