"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:uA******** ******@TK2MSFTN GP15.phx.gbl...
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]
- mv*@spam.guard. caspershouse.co m
"Neo" <ti************ *********@NOS0A Myahoo.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. Sorry for reposting, subject line was incorrect...
These are not working in Visual Studio .NET 2005 beta 1 (no such methods)
mainMenu1.Merge Menu(contextMen u1);
and
myContextMenu.M enuItems.Add(fi leMenuItem.Clon eMenu());
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 "ContextMenuStr ip"... How can I use ContextMenu then????
Thanks,
-Neo