MZ-Tools Articles Series: HOWTO: Controlling the state of command in a Visual Studio add-in

May 13, 2007

This is another of those questions that appear from time to time in the forums: how to make a command invisible or disabled, how to make it appear only when some condition is true, etc. The answers are in the QueryStatus / AddNamedCommand methods. Since my MZ-Tools add-in does not use a permanent user interface, I was […]


MZ-Tools Articles Series: HOWTO: Use the IVsMonitorSelection interface from a Visual Studio add-in

May 13, 2007

Ever wanted to know from an add-in whether a context Guid of the EnvDTE80.ContextGuids class, for example vsContextGuidDebugging, vsContextGuidDesignMode, vsContextGuidSolutionExists, vsContextGuidSolutionHasMultipleProjects, vsContextGuidSolutionHasSingleProject, vsContextGuidNoSolution, etc. is active? This new article of mine shows how: HOWTO: Use the IVsMonitorSelection interface from a Visual Studio add-in http://www.mztools.com/articles/2007/MZ024.htm


Updated MZ-Tools Article Series: HOWTO: Adding buttons, commandbars and toolbars to Visual Studio .NET from an add-in

May 10, 2007

I have updated my most popular (by far) article to include information and sample code about how to create permanent commandbars (via Commands.AddCommandBar) instead of temporary commandbars (via CommandBars.Add): HOWTO: Adding buttons, commandbars and toolbars to Visual Studio .NET from an add-in http://www.mztools.com/articles/2005/MZ003.htm I have done this for completeness sake, because as I stated in the […]


Using Virtual PC to test Visual Studio "Orcas"

May 2, 2007

As you may know, Microsoft provides now the CTPs and Betas of Visual Studio “Orcas” (currently Beta 1 at the time of this writing) in the form of virtual machines for Virtual PC, which is great to avoid a second computer or second partition to test it. If you are not very familiar with Virtual […]


MZ-Tools Articles Series: HOWTO: Create a checked/unchecked command in a Visual Studio add-in

May 2, 2007

Another question appears from time to time in the forums is how to create a command whose buttons can appear in a checked / unchecked state. Although they are very easy to create, the answer is far from obvious if you don’t know where to look: HOWTO: Create a checked/unchecked command in a Visual Studio […]