Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to Remove Sub menus (Build, Debug, Debug Location) from Main Menu (View->Toolbars) in Visual Studio VSX 2010

$
0
0

Hi All,

I want to customize main menu of visual studio 2010 in VSX. In this -

1> I want to show only "Standard" option from following submenus (View-Toolbars-> Standard) 

When I debug the code using DTE.Events I found that the "Toolbars" submenus has only 2 childs i.e. Build and "Customize...".

How and when it adds other options (children like Debug, Text Editor etc) ? I tried to remove "Build" sub menu, then it has removed all the sub menus (confusing for me) except "Customize".

2> I want to keep only "Standard" option and removes all the options (but when I remove "Build" it removes "Standard" also).

I want to check which and what sub menus are present until OnStartUpComplete event of DTE executed by package. I register it in Initiliaze() of package. (Also provide autoload attiribute as   [ProvideAutoLoad(UIContextGuids.NoSolution)]).

                DTE dte = this.DTE;
                eventsObj = dte.Events.DTEEvents;
                eventsObj.OnStartupComplete += new             _dispDTEEvents_OnStartupCompleteEventHandler(eventsObj_OnStartupComplete);

Still OnStartUpComplete doesn't get executed.

Please help me. Thanks.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>