Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I remember seeing this problem elsewhere, and the reason was that the OnConnection method can be called at multiple times for multiple reasons (with different values of connectMode), so there is some trickery (or peculiarities, depending on how you look at it and how much of this you know) involved.</p> <p>However, I am not an expert on this topic, so here are some links that <em>will</em> help you:</p> <p><a href="http://www.mztools.com/articles/2008/MZ2008004.aspx" rel="nofollow noreferrer">HOWTO: Use correctly the OnConnection method of a Visual Studio add-in</a></p> <p><a href="http://www.mztools.com/articles/2008/..%5C2005%5CMZ2005003.aspx" rel="nofollow noreferrer">HOWTO: Adding buttons, commandbars and toolbars to Visual Studio .NET from an add-in</a></p> <p><a href="http://www.mztools.com/articles/2007/MZ2007025.aspx" rel="nofollow noreferrer">HOWTO: Controlling the state of command in a Visual Studio add-in</a></p> <p>Those are somewhat too long to just summarize here (at least it seems like that to me), but they do have the information you need.</p> <p>Also, here is a list of articles on writing VS addins, which will probably be very helpful: <a href="http://www.mztools.com/resources_vsnet_addins.aspx" rel="nofollow noreferrer">http://www.mztools.com/resources_vsnet_addins.aspx</a></p> <p>HTH.</p> <hr/> <p>EDIT: Money J's answer is a bit more to the point, I suppose, and is basically a <em>very short</em> summary of what you need to do, and if that's all you're after - great. However, I believe that the information contained on the pages I provided the links to is very useful, so you might want to read that as well.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload