disable/turn off active scripting/javascript in webbrowser control .net

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

    #1

    disable/turn off active scripting/javascript in webbrowser control .net

    Hi there



    I am hunting for way to turn off/disable active scripting especially
    javascript in my webbrowser control. I don't see any property to turn
    off script. I found entry in registry under HKU/software/microsoft/...
    which gets modified when we manually change the setting for active
    scripting in IE from dword 3 to 0. But that solution is not viable
    because programatically registry updation is dependent the user rights
    as well and when I tried to do that the opensubkey returned always
    NULL. I don't know what to do. I am still searching. Any direction or
    help or code help will be appreciated. thanks



    kal

  • Newbie Coder

    #2
    Re: disable/turn off active scripting/javascript in webbrowser control .net

    Kal,

    You can use the registry permission class & either 'assert' or 'demand' a
    change on that key

    --
    Newbie Coder
    (It's just a name)


    "kal" <kuldipnaik@gma il.comwrote in message
    news:1176742288 .120645.268160@ y5g2000hsa.goog legroups.com...
    Hi there
    >
    >
    >
    I am hunting for way to turn off/disable active scripting especially
    javascript in my webbrowser control. I don't see any property to turn
    off script. I found entry in registry under HKU/software/microsoft/...
    which gets modified when we manually change the setting for active
    scripting in IE from dword 3 to 0. But that solution is not viable
    because programatically registry updation is dependent the user rights
    as well and when I tried to do that the opensubkey returned always
    NULL. I don't know what to do. I am still searching. Any direction or
    help or code help will be appreciated. thanks
    >
    >
    >
    kal
    >

    Comment

    Working...