MergeMenu method modifies the source and the target MenuItem objects in Visual Studio .NET (834613)
The information in this article applies to:
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
SYMPTOMSThe MergeMenu method of the MenuItem object modifies both the source MenuItem objects and the target MenuItem objects. The result is that the same items are in both the source MenuItem objects and the target MenuItem objects.RESOLUTIONTo resolve this problem, replace the code in step 8 of the "More Information" section with the following code: Microsoft Visual C# .NET menuItem1.MergeMenu(menuItem2.CloneMenu()); Microsoft Visual Basic .NET MenuItem1.MergeMenu(MenuItem2.CloneMenu) STATUS This behavior is by design.REFERENCESFor additional information about the MenuItem.MergeMenu method, visit the following Microsoft Developer Network (MSDN) Web site:
Modification Type: | Minor | Last Reviewed: | 2/9/2006 |
---|
Keywords: | kbvs2005swept kbvs2005doesnotapply kbMenu kbControl kbprb KB834613 kbAudDeveloper |
---|
|