473,769 Members | 3,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to enable/disable scripting in IE programmaticall y?

MJB
I am using the embedded ActiveX IE WebBrowser component in my C#
application. I want to be able to Enable/Disable javascripting
programmaticall y. 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
Nov 16 '05 #1
3 3088
Matt,

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

http://msdn.microsoft.com/archive/de...ll/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]
- mv*@spam.guard. caspershouse.co m

"MJB" <mb*@email.co m> wrote in message
news:eB******** *****@TK2MSFTNG P14.phx.gbl...
I am using the embedded ActiveX IE WebBrowser component in my C#
application. I want to be able to Enable/Disable javascripting
programmatical ly. 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

Nov 16 '05 #2
MJB
Thanks for the info. I was hunting around for a registry entry.

--Matt

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:O4******** ******@TK2MSFTN GP15.phx.gbl...
Matt,

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

http://msdn.microsoft.com/archive/de...ll/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]
- mv*@spam.guard. caspershouse.co m

"MJB" <mb*@email.co m> wrote in message
news:eB******** *****@TK2MSFTNG P14.phx.gbl...
I am using the embedded ActiveX IE WebBrowser component in my C#
application . I want to be able to Enable/Disable javascripting
programmatica lly. 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


Nov 16 '05 #3
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

Nov 16 '05 #4

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

Similar topics

1
3870
by: Lim Tau Wan (SG) | last post by:
Currently, our application requires to use the COM Port but it seems that the COM Port is being utilised by other process. Therefore if I need to use the COM Port, I have to manually disable and then enable the COM Port. As such I will need to know how to programmatically disable and enable the COM Port. Please advise on how to go about it in .NET or VB6. Thanks
3
3800
by: DBQueen | last post by:
I have a form with lines of controls. On some of the lines there are 3 controls (call them A,B,C); other lines have only control A. The controls have been numbered sequentially (Q20, Q21....Q76) and they were put onto the form in the numerical sequence. I have given the A's with B & C's on the same line a tag=1; B.tag=2, C,tag=2) I am trying to write 2 modules so that the following occurs (on Form_Current and 'A' Control_Before or...
1
4678
by: JC | last post by:
I am a newbe to C#, and I am required to enable and disable rows in a listview, depending on certain criteria. e.g. The listview contains - Apples Oranges Grapes I am required to have Apples and Grapes enabled and available for selection, and Oranges must be disabled so that a user cannot select
3
3216
by: MJB | last post by:
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
8
1954
by: Arno R | last post by:
Hi all, Is the above possible? I guess I need an API call for this ? How and where to find this? One of my new apps is used as a sort of 'dedicated' thing. Users see an empty desktop with *only* two buttons. They only click a button to start the app. (They have two apps they need to work with) When they minimise the app (and some do this accidently...) the app is NOT visible anymore in a taskbar or so. In fact there is NO taskbar... ...
1
1773
by: ramendra | last post by:
I am using javascript as the client scripting language. And, was able to successfully debug the client-side code a while ago, but recently something has changed and i am no more able to debug the client side code. I have also unchecked the "Disable client - side code" in the internet options dialog on the internet explorer. Please any kind of help is appreciated... thanks, Ramendra
7
13934
by: Michael | last post by:
I'm exploring how to programmatically disable/enable devices in a system using C#. -MH
8
34458
by: rongchaua | last post by:
Hi all, i would like now to disable and enable network adapter programmatically with c#. I have searched but found nothing useful. There's no topic about this problem. Has someone done with this problem? All help will be appreciated. rongchaua.
2
2376
by: Water Cooler v2 | last post by:
How do you enable/disable JavaScript in Internet Explorer v6?
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10206
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9851
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7403
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3949
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 we have to send another system
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2811
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.