Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

Is it possible to enable/disable scripting in IE programmatically?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MJB - 03 Dec 2004 20:33 GMT
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] - 03 Dec 2004 20:45 GMT
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/interne
t/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.

Signature

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

>I am using the embedded ActiveX IE WebBrowser component in my C#
>application.  I want to be able to Enable/Disable javascripting
[quoted text clipped - 4 lines]
> Thanks,
> Matt
MJB - 03 Dec 2004 21:05 GMT
Thanks for the info.  I was hunting around for a registry entry.

--Matt

> Matt,
>
[quoted text clipped - 17 lines]
>> Thanks,
>> Matt
Cor Ligthert - 04 Dec 2004 10:04 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.