1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[VB] Block Pop-up with Tab Browser

Discussion in 'Visual Basic .NET' started by Marcoluca56, Apr 10, 2014.

  1. Marcoluca56

    Marcoluca56 Newbie

    Joined:
    Apr 1, 2014
    Messages:
    23
    Likes Received:
    0
    Hi guys!
    How can i block pop-up with tab-browser?
    I don't use Webbrowser1, but
    Code:
     Dim Browser As New WebBrowser     
       TabControl1.TabPages.Add("New Page")
            TabControl1.SelectTab(inte)
            Browser.Name = "Web Browser"
            Browser.Dock = DockStyle.Fill
            TabControl1.SelectedTab.Controls.Add(Browser)
            AddHandler Browser.DocumentCompleted, AddressOf Done
            inte = inte + 1
            CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate("")
            CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).ScriptErrorsSuppressed = True
    so, i want know how can i block pop-up

    Thanks in advance ;)
     
    Last edited: Apr 10, 2014