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

Re: Is it possible to enable/disable scripting in IE programmatically? by Nicholas

Nicholas
Fri Dec 03 14:45:00 CST 2004

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

"MJB" <mb2@email.com> wrote in message
news:eBoXwfX2EHA.924@TK2MSFTNGP14.phx.gbl...
>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
>



Re: Is it possible to enable/disable scripting in IE programmatically? by MJB

MJB
Fri Dec 03 15:05:19 CST 2004

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...
> 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
>
> "MJB" <mb2@email.com> wrote in message
> news:eBoXwfX2EHA.924@TK2MSFTNGP14.phx.gbl...
>>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
>>
>
>



Re: Is it possible to enable/disable scripting in IE programmatically? by Cor

Cor
Sat Dec 04 04:04:19 CST 2004

MJB,

> Thanks for the info. I was hunting around for a registry entry.

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