|
-
Jul 2nd, 2001, 01:33 PM
#1
Thread Starter
Hyperactive Member
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?
-
Jul 2nd, 2001, 09:24 PM
#2
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|