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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MJB

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

    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


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Is it possible to enable/disable scripting in IE programmaticall y?

    Matt,

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

    Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


    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.co m

    "MJB" <mb2@email.co m> wrote in message
    news:eBoXwfX2EH A.924@TK2MSFTNG P14.phx.gbl...[color=blue]
    >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
    >[/color]


    Comment

    • MJB

      #3
      Re: Is it possible to enable/disable scripting in IE programmaticall y?

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

      --Matt

      "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote in
      message news:O4jDTkX2EH A.2112@TK2MSFTN GP15.phx.gbl...[color=blue]
      > 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]
      > - mvp@spam.guard. caspershouse.co m
      >
      > "MJB" <mb2@email.co m> wrote in message
      > news:eBoXwfX2EH A.924@TK2MSFTNG P14.phx.gbl...[color=green]
      >>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
      >>[/color]
      >
      >[/color]


      Comment

      • Cor Ligthert

        #4
        Re: Is it possible to enable/disable scripting in IE programmaticall y?

        MJB,
        [color=blue]
        > Thanks for the info. I was hunting around for a registry entry.[/color]

        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



        Comment

        Working...