|
Hi
I would like to continue with the MainMenu class in .NET 2.0 and VS2005, but the Designer doesn't work anymore. If you use the menu designer it now suports the MenuStrip instead. If I look in the assembly references for the tools that VS2005 uses the Microsoft.VisualStudio.dll (which hosted the Designer for MainMenu in VS2003) is still included, but I can't seem to use the Designer anyway.
Any ideas?
The reason, by the way, that I would like to continue with the old MainMenu is that it is based on Win32 HMENUs and I need to exchange it between managed and unmanaged code.
Thanks ///Jørn |
| jorn Tuesday, September 20, 2005 12:51 PM |
Jørn,
Why can't you use the old MainMenu? What troubles are you having?
It still should work as it hasn't been disabled. However it is hidden in the designer by default.
To add it, do the following:
1. Open Visual Studio 2. Choose View -> Toolbox 3. Right-click the Toolbox tool window and select Choose Items 4. Scroll down and ensure MainMenu is checked 5. Click OK
The MainMenu will now be displayed in the Toolbox.
|
| David M. Kean Tuesday, September 20, 2005 8:39 PM |
I just tested this in the Visual Studio TS Release Candidate and everything worked correctly.
I was am to correctly use the designer to design the old MainMenu items.
Perhaps this has been fixed in this later version? |
| David M. Kean Thursday, September 22, 2005 8:42 AM |
We looked for the same thing and couldn't find it, the only way we saw to change the old MainMenu derived menus was via code.
Josh |
| Josh Lindenmuth Tuesday, September 20, 2005 1:42 PM |
Jørn,
Why can't you use the old MainMenu? What troubles are you having?
It still should work as it hasn't been disabled. However it is hidden in the designer by default.
To add it, do the following:
1. Open Visual Studio 2. Choose View -> Toolbox 3. Right-click the Toolbox tool window and select Choose Items 4. Scroll down and ensure MainMenu is checked 5. Click OK
The MainMenu will now be displayed in the Toolbox.
|
| David M. Kean Tuesday, September 20, 2005 8:39 PM |
Hi David
I have verified that and there are two MainMenu items included (checked). One from version 2.0 of the .NET framework and one from version 1.0.5000.0.
But unfortunately this still doesn't give med the possibility to edit MainMenus with the Designer.
///Jørn |
| jorn Thursday, September 22, 2005 7:24 AM |
If I create the MainMenu and it's first subitem with code and put the code in the designer sections (in the X.Designer.cs file) it actually reads it and from then on, I can use the MainMenu designer. But of course it still doesn't give me the entry in the Toolbox. I always have to do the first item by hand.
///Jørn |
| jorn Thursday, September 22, 2005 7:57 AM |
I just tested this in the Visual Studio TS Release Candidate and everything worked correctly.
I was am to correctly use the designer to design the old MainMenu items.
Perhaps this has been fixed in this later version? |
| David M. Kean Thursday, September 22, 2005 8:42 AM |