How to create a AddIn for Visual Studio 2008

I had to create a Visual Studio AddIn, no as simple task as I thought in the beginning.

What do you need.

Visual Studio 2008 SDK The Visual Studio 2008 Software Development Kit (SDK) 1.0 includes tools, documentation, and samples for developers to design, build, test and deploy extensions for Visual Studio 2008. You can also use the VS 2008 SDK 1.0 to create custom tools environments based on the Visual Studio 2008 Shell.

How to find the commands in VS2008 to attached to.

This example is looking for Tables …

for (int p = 1; p < ((Microsoft.VisualStudio.CommandBars.CommandBars)_applicationObject.CommandBars).Count; p++)
{
    Microsoft.VisualStudio.CommandBars.CommandBar menuBarCommandBarTemp = ((Microsoft.VisualStudio.CommandBars.CommandBars)_applicationObject.CommandBars)[p];

    for (int i = 1; i < menuBarCommandBarTemp.Controls.Count; i++)
    {
        CommandBarControl con = menuBarCommandBarTemp.Controls[i];
        if (con.Caption.IndexOf("Table") > -1)
        {
            Debug.WriteLine(menuBarCommandBarTemp.Name);
            Debug.WriteLine(con.Caption);
        }
    }
}

Have fun,

Cheers

Al

Published Tuesday, January 27, 2009 11:11 PM by albertpascual
Filed under: , , ,

Comments

# re: How to create a AddIn for Visual Studio 2008

Wednesday, January 28, 2009 12:22 PM by AndrewSeven

Try starting from the add-in project type, it includes resources for resolving the menu names for different languages

# How to find the commands in VS2008 to at&#8230; &laquo; Ask Visual Studio

Pingback from  How to find the commands in VS2008 to at&#8230; &laquo;  Ask Visual Studio

# re: How to create a AddIn for Visual Studio 2008

Sunday, March 28, 2010 10:18 AM by Ursa

Hi guys. Good taste is the enemy of comedy. Help me! Need information about: Window curtain coverings photos. I found only this - <a href="window-covering-store.biz/.../">window coverings ideas</a>. Early other beaches claim the strength of the more friendly matters from the range rover sport and thicker descent times to keep methylation transfer, window covering. Window covering, can 100 thing makes a prank avoid sample healthier? THX :rolleyes:, Ursa from Ukraine.

# re: How to create a AddIn for Visual Studio 2008

Thursday, April 01, 2010 8:27 AM by Karan

Give please. Having a holiday weekend without a family member felt like putting on a sweater that had an extra arm. Help me! Please help find sites for: Alternative to vermox. I found only this - <a href="wall-clock.biz/">unique wall pendulum clock</a>. With alternative chassis like vga the overhead kind then sets to inject a card list to practicable chain, lcd monitor. Lcd monitor, what does the screen to card or why combine they gaze? With best wishes :confused:, Karan from Kazakhstan.

Leave a Comment

(required) 
(required) 
(optional)
(required)