[Repost] MergeMenu and CloneMenu not working in VS 2005 beta 1

  • Thread starter Thread starter Neo
  • Start date Start date
N

Neo

Sorry for reposting, subject line was incorrect...


These are not working in Visual Studio .NET 2005 beta 1 (no such methods)


mainMenu1.MergeMenu(contextMenu1);

and

myContextMenu.MenuItems.Add(fileMenuItem.CloneMenu());


Are these being changed from Visual Studio 2003 to VS2005 ???



-Neo
 
Neo,

What makes you think they do not work? Do you get an exception? Or
something else? I can see the methods in the documentation, and in
Reflector as well.

What is occuring? Can you post an example?
 
Nicholas Paldino said:
Neo,

What makes you think they do not work? Do you get an exception? Or
something else? I can see the methods in the documentation, and in
Reflector as well.

What is occuring? Can you post an example?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Neo said:
Sorry for reposting, subject line was incorrect...


These are not working in Visual Studio .NET 2005 beta 1 (no such methods)


mainMenu1.MergeMenu(contextMenu1);

and

myContextMenu.MenuItems.Add(fileMenuItem.CloneMenu());


Are these being changed from Visual Studio 2003 to VS2005 ???



-Neo

Sorry that was my mistake, Actually I've created the control (menu) of type
System.Windows.Form.MenuStrip and that doesn't have MergerMenu() method.
Documentation says :

MainMenuStrip
"Provides a menu system for a form. Although MenuStrip replaces and adds
functionality to the MainMenu control of previous versions, MainMenu is
retained for both backward compatibility and future use if you choose."
By default MainMenuStrip appear on the Toolbox.

Same is the case with "ContextMenu".... So, now I've created an instance of
type ContextMenu.... But the problem is how do I assign it to Form as its
context menu???? It has no property called ContextMenu, instead it has a
property "ContextMenuStrip"... How can I use ContextMenu then????


Thanks,
-Neo
 
Back
Top