Re: Does WebBrowser control in .net 2.0 support blocking pop-up windows?
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.
Re: Does WebBrowser control in .net 2.0 support blocking pop-up windows?
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 [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote in
message news:OLQrDGnzFH A.3124@TK2MSFTN GP12.phx.gbl...[color=blue]
> 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]
> - mvp@spam.guard. caspershouse.co m
>
> "nicholas" <nicholas_by@si na.com.cn> wrote in message
> news:eEf5w4jzFH A.3720@TK2MSFTN GP14.phx.gbl...[color=green]
>> If yes, how?
>>
>> Thanks
>>[/color]
>
>[/color]
Re: Does WebBrowser control in .net 2.0 support blocking pop-up windows?
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 CoInternetSetFe atureEnabled function in
URLMON.dll. You can find the declaration at pinvoke.net, at (watch for line
wrap):
Once you pass the SID to the IServiceProvide r::QueryService method, you
pass the SID
"nicholas" <nicholas_by@si na.com.cn> wrote in message
news:%23DneSJtz FHA.908@tk2msft ngp13.phx.gbl.. .[color=blue]
> 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 [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote
> in message news:OLQrDGnzFH A.3124@TK2MSFTN GP12.phx.gbl...[color=green]
>> 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]
>> - mvp@spam.guard. caspershouse.co m
>>
>> "nicholas" <nicholas_by@si na.com.cn> wrote in message
>> news:eEf5w4jzFH A.3720@TK2MSFTN GP14.phx.gbl...[color=darkred]
>>> If yes, how?
>>>
>>> Thanks
>>>[/color]
>>
>>[/color]
>
>[/color]
Re: Does WebBrowser control in .net 2.0 support blocking pop-up windows?
Thanks
I'll try as what you said.
"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote in
message news:uzvsYW0zFH A.404@TK2MSFTNG P09.phx.gbl...[color=blue]
> 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 CoInternetSetFe atureEnabled function
> in URLMON.dll. You can find the declaration at pinvoke.net, at (watch for
> line wrap):
>
> http://www.pinvoke.net/default.aspx/...reEnabled.html
>
> You need the definition for INTERNETFEATURE LIST as well. You can find
> that at:
>
> http://www.pinvoke.net/default.aspx/...ATURELIST.html
>
> Call it, setting the flag for the process, opting into the pop up
> blocker.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mvp@spam.guard. caspershouse.co m
>
> Once you pass the SID to the IServiceProvide r::QueryService method, you
> pass the SID
> "nicholas" <nicholas_by@si na.com.cn> wrote in message
> news:%23DneSJtz FHA.908@tk2msft ngp13.phx.gbl.. .[color=green]
>> 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 [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote
>> in message news:OLQrDGnzFH A.3124@TK2MSFTN GP12.phx.gbl...[color=darkred]
>>> 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]
>>> - mvp@spam.guard. caspershouse.co m
>>>
>>> "nicholas" <nicholas_by@si na.com.cn> wrote in message
>>> news:eEf5w4jzFH A.3720@TK2MSFTN GP14.phx.gbl...
>>>> If yes, how?
>>>>
>>>> Thanks
>>>>
>>>
>>>[/color]
>>
>>[/color]
>
>[/color]
Comment