473,484 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Does WebBrowser control in .net 2.0 support blocking pop-up windows?

If yes, how?

Thanks
Nov 17 '05 #1
4 3387
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]
- mv*@spam.guard.caspershouse.com

"nicholas" <ni*********@sina.com.cn> wrote in message
news:eE**************@TK2MSFTNGP14.phx.gbl...
If yes, how?

Thanks

Nov 17 '05 #2
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]" <mv*@spam.guard.caspershouse.com> wrote in
message news:OL**************@TK2MSFTNGP12.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"nicholas" <ni*********@sina.com.cn> wrote in message
news:eE**************@TK2MSFTNGP14.phx.gbl...
If yes, how?

Thanks


Nov 17 '05 #3
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/...reEnabled.html

You need the definition for INTERNETFEATURELIST 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]
- mv*@spam.guard.caspershouse.com

Once you pass the SID to the IServiceProvider::QueryService method, you
pass the SID
"nicholas" <ni*********@sina.com.cn> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
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]" <mv*@spam.guard.caspershouse.com> wrote
in message news:OL**************@TK2MSFTNGP12.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"nicholas" <ni*********@sina.com.cn> wrote in message
news:eE**************@TK2MSFTNGP14.phx.gbl...
If yes, how?

Thanks



Nov 17 '05 #4
Thanks
I'll try as what you said.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:uz*************@TK2MSFTNGP09.phx.gbl...
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/...reEnabled.html

You need the definition for INTERNETFEATURELIST 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]
- mv*@spam.guard.caspershouse.com

Once you pass the SID to the IServiceProvider::QueryService method, you
pass the SID
"nicholas" <ni*********@sina.com.cn> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
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]" <mv*@spam.guard.caspershouse.com> wrote
in message news:OL**************@TK2MSFTNGP12.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"nicholas" <ni*********@sina.com.cn> wrote in message
news:eE**************@TK2MSFTNGP14.phx.gbl...
If yes, how?

Thanks



Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
18701
by: E Stafford | last post by:
I am creating a form app that uses a webBrowser control and allows users to interact with a web hosted application. Users can query the web app and generate a CSV file that they should be able to...
4
2864
by: Randy | last post by:
Hi, ok, I found a way to connect to a running instance of an (external) Internet Explorer and access - for example - the html source. That works fine! But now I have running application with...
9
3791
by: ASP .NET Newbie | last post by:
How can I run a WebBrowser control using ASP.NET/VB.NET? I know I can use the WebClient to get the page data, but I need to be able to use the WebBrowser (AxWebBrowser)? Thanks, Chad
2
4759
by: Chris Bingham | last post by:
Hi everyone, Does anyone know how to fix the paper orientation depending on the paper size used when printing with the WebBrowser control please? What I've got is a HTML file, containing 1 big...
3
1123
by: KC | last post by:
Is the webBrowser control included in VB.net standard? I can't seem to find it. Or do I have to create a certain type of solution? Ken
12
6327
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but...
0
1077
by: bastawhiz | last post by:
With VB.Net 05 and IE7, I'm trying to find a way to block any ActiveX controls from loading in a standard WebBrowser control. For example, I want to prevent Flash, Quicktime, etc. from running. Is...
12
5972
by: Benson | last post by:
I want to write a program to display files (xls, doc,html,pdf,jpg) on screen. I thought I can use WebBrowser in VB2005 to do this job since those kinds of files can be displayed in IE. I try to...
18
6820
by: Zytan | last post by:
I have multiple threads writing to WebBrowser (using a function that checks InvokedRequired, and if so, invokes itself on the WebBrowser thread) and they are getting deadlocked. They only...
3
1872
topher23
by: topher23 | last post by:
I'm trying to use a WebBrowser control to automate data entry from our local Access system to the web-based corporate ERP system. Unfortunately, I've run into a snag. Several of the text boxes that...
0
7082
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7105
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7144
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6813
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7214
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4529
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3046
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1359
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
592
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.