Results 1 to 4 of 4

Thread: Avoid Pop-ups in the webbrowser control

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    3

    Avoid Pop-ups in the webbrowser control

    How do I avoid annoying pop-ups windows when navigating with the webbrowser control in Visual Basic? Anyone has a code example?

    I'm grateful for answers.

  2. #2
    rsitogp
    Guest
    Code:
    Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
    Cancel = True
    End Sub
    But be careful some sites use setfocus on popups so you might get a runtime error!

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    3
    Thank you very much!

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    3
    Sad to say it but it doesnt work THAT well I have discovered. Some
    pops are still there. Any tips on how to avoid them in webbrowser control?

    And another question:

    How do I load pages with no pictures with the webbrowser control? Is it possible to load pages only with HTML-source directly into the control?

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