|
-
May 11th, 2001, 03:17 PM
#1
Thread Starter
New Member
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.
-
May 12th, 2001, 01:34 AM
#2
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!
-
May 12th, 2001, 05:26 AM
#3
Thread Starter
New Member
Thank you very much!
-
May 16th, 2001, 05:37 PM
#4
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|