N
nicholas
If yes, how?
Thanks
Thanks
Nicholas Paldino said:nicholas,
It will use whatever pop up mechanism that IE uses on the client. If
you are running XP SP2, then you should get the IE popup blocker. If you
are not, but have a browser helper object that handles popups, the web
browser control should use that as well.
The webbrowser control is nothing more than a thin wrapper to internet
explorer (that's generalizing, but it's basically true). In that sense,
whatever it uses, the web browser control will use.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
nicholas said:If yes, how?
Thanks
nicholas said:Thanks for you reply.
I do have installed XP SP2, but the pop-up windows still come up. And the
same thing happens in my Windows App using WebBrowser.
I'm just wondering how can I block the pop-up windows.
Thanks again!!!
Nicholas Paldino said:nicholas,
It will use whatever pop up mechanism that IE uses on the client. If
you are running XP SP2, then you should get the IE popup blocker. If you
are not, but have a browser helper object that handles popups, the web
browser control should use that as well.
The webbrowser control is nothing more than a thin wrapper to internet
explorer (that's generalizing, but it's basically true). In that sense,
whatever it uses, the web browser control will use.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
nicholas said:If yes, how?
Thanks
Nicholas Paldino said:nicholas,
I just realized, you have to opt in for the pop up management in IE
(note, this is JUST for the pop up blocker in IE in XP SP2).
To do that, you need to call the CoInternetSetFeatureEnabled function
in URLMON.dll. You can find the declaration at pinvoke.net, at (watch for
line wrap):
http://www.pinvoke.net/default.aspx/urlmon/CoInternetSetFeatureEnabled.html
You need the definition for INTERNETFEATURELIST as well. You can find
that at:
http://www.pinvoke.net/default.aspx/Enums/INTERNETFEATURELIST.html
Call it, setting the flag for the process, opting into the pop up
blocker.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Once you pass the SID to the IServiceProvider::QueryService method, you
pass the SID
nicholas said:Thanks for you reply.
I do have installed XP SP2, but the pop-up windows still come up. And the
same thing happens in my Windows App using WebBrowser.
I'm just wondering how can I block the pop-up windows.
Thanks again!!!
Nicholas Paldino said:nicholas,
It will use whatever pop up mechanism that IE uses on the client. If
you are running XP SP2, then you should get the IE popup blocker. If
you are not, but have a browser helper object that handles popups, the
web browser control should use that as well.
The webbrowser control is nothing more than a thin wrapper to
internet explorer (that's generalizing, but it's basically true). In
that sense, whatever it uses, the web browser control will use.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
If yes, how?
Thanks