Results 1 to 2 of 2

Thread: registry

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2001
    Posts
    378

    registry

    I would like to disable right clicking in a browser, among other things.

    Here's how I've been told to do it:
    HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserContextMenu
    Data Type : DWORD = 00000001

    How would I access this registry info using VB?

  2. #2
    New Member
    Join Date
    Jul 2001
    Location
    Pittsburgh
    Posts
    3
    Set wshshell = CreateObject("Wscript.Shell")


    GetKey = wshshell.regread("HKLM\system\currentcontrolset\control\session manager\environment\PATH")
    DelKey = wshshell.RegDelete("HKLM\system\currentcontrolset\control\session manager\environment\PATH")
    wshshell.RegWrite "HKLM\system\currentcontrolset\control\session manager\environment\PATH", "" & GetKey & "", "REG_EXPAND_SZ"

    This example updates a system environmental variable with a new value of a new string type. It is similar to what you need. "Delkey =" I just use it to check that the value is blank.

    Good luck.

    -BernieB

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width