I try to write an add in for visual studio. Currently, I can only add one command at a time to the tools menu. I want to know how can I add a menu item with dropdown command to the tools menu or add a menu to the main menu bar after the help menu or before the help menu. See the attached picture for more info
Using the following code in connection, single menu item commands are added in this form
PHP Code:
//Add a command to the Commands collection:
Command command = commands.AddNamedCommand2(_addInInstance, "MyVSAddinOne", "MyVSAddinOne", "Executes the command for MyVSAddinOne", true, 59, ref contextGUIDS, (int)vsCommandStatus.vsCommandStatusSupported+(int)vsCommandStatus.vsCommandStatusEnabled, (int)vsCommandStyle.vsCommandStylePictAndText, vsCommandControlType.vsCommandControlTypeButton);
//Add a control for the command to the tools menu:
if((command != null) && (toolsPopup != null))
{
command.AddControl(toolsPopup.CommandBar, 1);
}
I want to know how can I use the code below to have sub items as shown by the picture
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.