Question How can I block a popup in a custom made web browser?

Tyrael

Member
Joined
Aug 6, 2008
Messages
8
Programming Experience
Beginner
Hello everyone:D, I'm trying to avoid stupid pop up windows that are appearing when I navigate on the internet. Is there a way to do that? To block them... :mad::confused::confused::eek:

I'm not using an Axbrowser, I'm using this script on tabbed web browsers.
VB.NET:
        Dim browse As New WebBrowser
        browse.Name = "b1"
        browse.Dock = DockStyle.Fill
        AddHandler browse.DocumentCompleted, AddressOf browse_done
        Tabcontrol1.TabPages.Add(I, "Page " & I + 1)
        Tabcontrol1.SelectTab(I)
        Tabcontrol1.SelectedTab.Controls.Add(browse)
        I = I + 1

///how can I block stupid popup windows?
 
Last edited:
What I have been doing with medium success is in the webbrowser1_NewWindow event, and the code "e.Cancel = True"

However, there are some popups that still get by it, I think they are Flash popups. I am working with a site right now that is hitting me with these and I'll probably be posting a request for help on them in a new thread once I find a good page as an example, lol.
 
Back
Top