Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

The Cut command and the Copy command do not work correctly on an InfoPath form element in Internet Explorer 7 if you use the shortcut menu


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You use Windows Internet Explorer 7 to open a Web page that contains a Microsoft Office InfoPath form.
  • You right-click an element in the InfoPath form, and then you click Cut or Copy.
  • You try to paste the element onto the InfoPath form or elsewhere.
In this scenario, the operations do not work correctly.

For example, you may encounter the following issues:
  • When you right-click an element and then click Cut, the element is not removed from its original position as expected.
  • When you right-click an element, click Copy, and then try to paste on an InfoPath form, the content of the element is pasted instead of the element itself.

↑ Back to the top


Cause

When you right-click an element in Internet Explorer 7, and then a shortcut menu appears, the Mshtml.dll module (code name "Trident") caches the element that you click. All executed commands use the cached element as the primary target before the Mshtml.dll module tries other options, such as the current selection. InfoPath sets the current selection in an attempt to control which elements are used by the Cut, Copy, and Paste commands. However, the cached element prevents InfoPath from using the current selection. Therefore, the Cut, Copy, and Paste commands do not work correctly on an InfoPath element if you use the shortcut menu.

↑ Back to the top


Resolution

Security update information

To resolve this problem, install the most recent cumulative security update for Windows Internet Explorer. To do this, visit the following Microsoft Web site: For more technical information about the most recent cumulative security update for Windows Internet Explorer, visit the following Microsoft Web site: Note This update was first included in security update 974455 (MS09-054). For more information, click the following article number to view the article in the Microsoft Knowledge Base:
974455 MS09-054: Cumulative Security Update for Internet Explorer

Registry information

After you install the cumulative security update for Internet Explorer MS09-034, you must add the following registry value to resolve this problem.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
To resolve this issue in InfoPath and in other applications, this update introduces a feature-control registry key that disables element caching for shortcut menus. By default, this feature-control registry key is turned off to preserve compatibility in Internet Explorer and in other Mshtml.dll module hosts that do not have this fix. This feature-control registry key has more precise control over which objects are targeted by shortcut menu operations. This control helps resolve this issue in applications that host the Mshtml.dll module and that need this update. However, when you set this feature-control registry key, the host application must exactly control the targets of their shortcut menu operations.

To add this feature-control registry key, follow these steps:
  1. Click Start
    , type regedit in the Start Search box, and then press ENTER.
    If you are prompted for an administrator password or for confirmation, type the password, or provide confirmation.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl
  3. On the Edit menu, point to New, and then click Key.
  4. Type the following key name, and then press ENTER:
    FEATURE_DONT_CACHE_CONTEXTMENU_OBJECT_KB972775
  5. On the Edit menu, point to New, and then click DWORD Value.
  6. Type iexplore.exe, and then press ENTER.
  7. Right-click iexplore.exe, and then click Modify.
  8. In the Value data box, type 1, and then click OK.
  9. Exit Registry Editor.

↑ Back to the top


Workaround

To work around this problem, use the ribbon command bar, or use the keyboard shortcuts (CTRL+X or CTRL+C) to run the Cut and Copy commands on an element from an InfoPath form in Internet Explorer 7.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: KB972775, atdownload, kbqfe, kbsurveynew, kbexpertiseinter

↑ Back to the top

Article Info
Article ID : 972775
Revision : 3
Created on : 10/7/2011
Published on : 10/7/2011
Exists online : False
Views : 432