devxlogo

GetIEContextMenuEnabled – Determine whether IE context menu is enabled

GetIEContextMenuEnabled – Determine whether IE context menu is enabled

' Determine whether the IE context menu is enabled' Note: requires the GetRegistryValue routine, you can find it in the CodeBank' Example:'   MsgBox "Context menu is enabled: " & GetIEContextMenuEnabledPublic Function GetIEContextMenuEnabled() As Boolean    Const HKEY_CURRENT_USER = &H80000001    GetIEContextMenuEnabled = Not CBool(GetRegistryValue(HKEY_CURRENT_USER, _        "SoftwarePoliciesMicrosoftInternet ExplorerRestrictions", _        "NoBrowserContextMenu"))End Function

devx-admin

Share the Post: