Back

Topic

[KB157]How to lock the Internet Explorer context menu for the Web Browser ActiveX

Tags: Scripting, VBA

14 years ago
By RM
Options
Print
Applies to:

PcVue version 7.00 onwards.
While the basic content of this article remains valid, details may have changed since it was written.


Summary:

This article describes how to lock the Context menu of Internet Explorer for the Web Browser ActiveX.


Details:

Create new User and System keys in the Windows Registry as follows:

  1. Take a back-up copy of the Registry file (e.g. using the Microsoft Backup utility).
  2. Open the Registry Editor (Start.Run.RegEdit).
  3. In the folder HKEY_CURRENT_USER\Software\Policies\Microsoft\, create these User keys: \Internet Explorer\Restrictions.

RegEdit_restrict_user_options

  1. In the Restrictions key, create these DWORD values (REG_DWORD):

NoBrowserContextMenu – to disable right-clicking on the Context menu.

NoFileNew – to disable  the File New command.

  1. Set the value of each DWORD:

1 – to enable the restriction.

0 – to disable the restriction.

  1. In the folder HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\, create these System keys: \Internet Explorer\Restrictions.
  2. In the Restrictions key, create these DWORD values (REG_DWORD):

NoBrowserContextMenu – to disable right-clicking on the Context menu.

NoFileNew – to disable  the File New command.

  1. Set the value of each DWORD:

1 – to enable the restriction.

0 – to disable the restriction.

  1. Close the Registry Editor (File.Exit) to apply the changed settings.
Note

The change is applied dynamically so there is no need to restart Windows.

For further information

For guidance on editing Registry entries, see the Registry Editor’s Help.


Created on: 05 Nov 2010 Last update: 26 Aug 2024