Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > dotnet windows forms controls > december 2004 >

dotnet windows forms controls : Is it possible to enable/disable scripting in IE programmatically?



MJB
12/3/2004 3:33:40 PM
I am using the embedded ActiveX IE WebBrowser component in my C#
application. I want to be able to Enable/Disable javascripting
programmatically. I was wondering if there was a way to achieve this? I
was hoping maybe there was a registery entry I could modify directly. Any
help will be appreciated.

Thanks,
Matt

Nicholas Paldino [.NET/C# MVP]
12/3/2004 3:45:00 PM
Matt,

You will want to use the WalkAll example found on MSDN. You can find it
at:

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/samples/internet/browser/walkall/default.asp

The example is in C++, but it shows how to disable things such as
JavaScript, ActiveX controls, etc, etc, in the browser. It will require a
good deal of COM interop on your part as well, so be prepared for that.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com

[quoted text, click to view]

MJB
12/3/2004 4:05:19 PM
Thanks for the info. I was hunting around for a registry entry.

--Matt

"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote in
message news:O4jDTkX2EHA.2112@TK2MSFTNGP15.phx.gbl...
[quoted text, click to view]

Cor Ligthert
12/4/2004 11:04:19 AM
MJB,

[quoted text, click to view]

Why did you than not say that. There was no need for sending it to
programlanguage groups in my opinion.

Maybe than the guys/girls from the browser group had taken more attention.
For me this seems as well as you wanted a program solution.

Now you have an answered message, which gives mostly less result.

Just my thought,

Cor


AddThis Social Bookmark Button