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.
Printable View
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.
But be careful some sites use setfocus on popups so you might get a runtime error!Code:Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Cancel = True
End Sub
Thank you very much!:)
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?