Results 1 to 4 of 4

Thread: Web Browser control - new windows

  1. #1

    Thread Starter
    Lively Member Xero's Avatar
    Join Date
    Feb 2000
    Posts
    75

    Post

    For the web browser control, how do you stop it from launching internet explorer's window when you click on a link in a 'New Window'. Once we stop it from using internet explorer's, how can I make it use my own form?

  2. #2
    Junior Member
    Join Date
    Jan 2000
    Location
    Phx, AZ USA
    Posts
    23

    Post

    Create a new instance of your primary form

    'When a new window is created, an instance of the Browser is generated
    'Prevents default browser from creating new window
    Private Sub wbBrowser_NewWindow2(ppDisp As Object, Cancel As Boolean)
    'declare a new instance of the form
    Dim frmBrowser2 As frmBrowser

    Set frmBrowser2 = New frmBrowser
    Set ppDisp = frmBrowser2.wbBrowser.Object
    'offset the form (in twips)
    frmBrowser2.Move 1000, 500, 14500, 14500
    frmBrowser2.Show

    End Sub

    Hope thats what you were asking for.

    dubi

  3. #3

    Thread Starter
    Lively Member Xero's Avatar
    Join Date
    Feb 2000
    Posts
    75

    Post

    Thanks!

  4. #4

    Thread Starter
    Lively Member Xero's Avatar
    Join Date
    Feb 2000
    Posts
    75

    Post

    I get funkadelic results when "javascriptop('whatever')" is used to show a window. There are probably extra parameters or something acciated with that java call. First, the window size is way bigger then it should be therefor the background of the new window tiles, which it should not, in this case (if you were wondering, i was using www.battle.net/scc/ then the green link as a test for this). Also, I would like to create a different window(without all menus and such) for when it IS java... or just like IE handle those...

    Thnx in advance.

    [This message has been edited by Xero (edited 02-18-2000).]

    [This message has been edited by Xero (edited 02-18-2000).]

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