views:

85

answers:

2

In Visual Studio 2010, the only option you can create is a commandbar under "Tools" on the "MenuBar". In some cases, I would want to know how to place the command bar on the standard bar, or be found when I right-click a project file.

Example:

Microsoft.VisualStudio.CommandBars.CommandBar menuBarCommandBar =

((Microsoft.VisualStudio.CommandBars.CommandBars)_applicationObject.
CommandBars)["MenuBar"];

By default it shows "MenuBar" and I am certain there is others, such as "Standard". However I am unable to find the resources or documentation for the list, and I wonder if anyone know where to look for list of these "Names".

Thank you guys in advance.

A: 

I only know of a few, and I am too wondering this, since I would like to know the name of the html code window in asp.net.

but here are the ones I know: "Code Window" (right-click code menu) "Tools" "MenuBar" "Standard"

EDIT: Also you can put a for loop to look through the commandbar names. (enumeration)

tcables
A: 

I think you can get all commandbars by enumerate : CommandBars.GetEnumerator

lz_prgmr