Results 1 to 5 of 5

Thread: Popup windows in WebBrowser control?

  1. #1

    Thread Starter
    Frenzied Member JungleMan's Avatar
    Join Date
    Feb 2001
    Posts
    2,033

    Angry

    Hey, I'm making an MDI, IE-based web browser (the world still doesn't have one look for it on ZDNet once i get it finished) using the WebBrowser control and I have a quesiton...

    When the user goes to a website and the site tries to make a popup window, I figured out some code to prevent Internet Explorer from making its own pop-up window and to instead copy the web browser form and set the URL to the URL of the pop-up window. As shown here:

    Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
    Dim F As New Form1
    F.Show
    Set ppDisp = F.WebBrowser1.object
    End Sub

    However, I can't figure out how to set the width/height of the new form to the width/height of what the IE window would normally be. Does anyone know how to do this? It would be greatly appreciated.
    I'm bringing geeky back...

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    HA HA HA!

    Brought it out for the whole world to see!

  3. #3
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    I dont want to burst your bubble, but everyone who installs earthlink gets a MDI version of internet explorer complete with mail controls, etc. It even has a disconnect button... Ive seen another one too but the earthlink one is the best one. If you insist on making one anyway, i suggest getting one of their cds and installing it to look at it for ideas. ps the popups suck on it too
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  4. #4

    Thread Starter
    Frenzied Member JungleMan's Avatar
    Join Date
    Feb 2001
    Posts
    2,033
    You realize this thread is a year old right?
    I'm bringing geeky back...

  5. #5
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    hehe no i didnt
    i didnt go looking for it, it was on the front page!
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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