<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Help! My CommandBarButton events stop firing</title><link>http://blogs.msdn.com/bowerm/archive/2004/06/22/162304.aspx</link><description>This is perhaps the most frequently asked question I hear when writing managed COM Addins or Smart Docs. You&amp;#8217;ve wired up an event handler to catch button clicks of custom menu items. They work for the first few clicks but then mysteriously stop</description><dc:language>en-GB</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Help! My CommandBarButton events stop firing</title><link>http://blogs.msdn.com/bowerm/archive/2004/06/22/162304.aspx#162321</link><pubDate>Tue, 22 Jun 2004 21:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:162321</guid><dc:creator>S.Vidyaraman</dc:creator><description>Thanks ! That helps a lot. I have one other related isssue. Please let me know if there is a better place to ask these questions ...... ( I already tried the NewGroups )&lt;br&gt;&lt;br&gt;If I wanted to tag an additional event to ALL the CommandBarButtons (say in MS Word), is it OK for me to declare just one class level scope button variable and use it over and over again to add an event handler to all the buttons ? This code seems to work on my developement platform, but if I try it on a new machine (deployment machine), it fails. I initially thought it was a problem with the Office 2003 PIAs, but the add-in loads and performs ALL other functions as expected. &lt;br&gt;S.Vidyaraman</description></item><item><title>re: Help! My CommandBarButton events stop firing</title><link>http://blogs.msdn.com/bowerm/archive/2004/06/22/162304.aspx#162348</link><pubDate>Tue, 22 Jun 2004 21:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:162348</guid><dc:creator>Mark Bower</dc:creator><description>You should add a variable for each button, for basically the same reason.  Each time you change your variable to reference a different CommandBarButton object you are causing the original reference to go out of scope.  </description></item><item><title>re: IRM</title><link>http://blogs.msdn.com/bowerm/archive/2004/06/22/162304.aspx#163696</link><pubDate>Wed, 23 Jun 2004 23:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:163696</guid><dc:creator>S.Vidyaraman</dc:creator><description>Thanks again. Are we going to see any posts on this blog relating to IRM in Office 2003 ? or is there a better place to look for IRM related discussions ? &lt;br&gt;S.Vidyaraman</description></item><item><title>Help! My CommandBarButton events stop firing </title><link>http://blogs.msdn.com/bowerm/archive/2004/06/22/162304.aspx#171789</link><pubDate>Fri, 02 Jul 2004 17:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:171789</guid><dc:creator>Chris Kunicki</dc:creator><description>Mark Bower Tuesday posted a simple tip for a very very very common question:This is perhaps the most frequently asked question I hear when writing managed COM Addins or Smart Docs.&amp;amp;nbsp; You’ve wired up an event handler to catch button clicks of custom menu items.&amp;amp;nbsp; They work for the first few clicks but then mysteriously stop working.&amp;amp;nbsp; What’s going on?The answer is almost always that the CommandBarButton objects have been scoped at the method level.&amp;amp;nbsp; What typically happens is that some indeterminate time after these objects go out of scope, the garbage collector runs and cleans up these objects along with the event hooks you have wired into.The solution is to make sure you scope these objects as class-level variables so that they stick around until the class gets destroyed.&amp;amp;nbsp;...</description></item><item><title>VS Addin: Fast Add Reference Dialog - No more Coffee Break, Steve!</title><link>http://blogs.msdn.com/bowerm/archive/2004/06/22/162304.aspx#9777391</link><pubDate>Thu, 18 Jun 2009 23:28:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9777391</guid><dc:creator>Weak Reference</dc:creator><description>&lt;p&gt;VS Addin: Fast Add Reference Dialog - No more Coffee Break, Steve!&lt;/p&gt;
</description></item><item><title>VS Addin: Fast Add Reference Dialog - No more Coffee Break!</title><link>http://blogs.msdn.com/bowerm/archive/2004/06/22/162304.aspx#9777408</link><pubDate>Thu, 18 Jun 2009 23:33:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9777408</guid><dc:creator>Tuna Toksoz</dc:creator><description>&lt;p&gt;I have spent a couple of days on implementing a fast add reference dialog box for Visual Studio. The&lt;/p&gt;
</description></item><item><title> Mark Bower Help My CommandBarButton events stop firing | adirondack chairs</title><link>http://blogs.msdn.com/bowerm/archive/2004/06/22/162304.aspx#9783731</link><pubDate>Fri, 19 Jun 2009 12:15:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9783731</guid><dc:creator> Mark Bower Help My CommandBarButton events stop firing | adirondack chairs</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://adirondackchairshub.info/story.php?id=3576"&gt;http://adirondackchairshub.info/story.php?id=3576&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>VS Addin: Fast Add Reference Dialog - No more Coffee Break, Steve!</title><link>http://blogs.msdn.com/bowerm/archive/2004/06/22/162304.aspx#9786520</link><pubDate>Fri, 19 Jun 2009 15:19:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9786520</guid><dc:creator>Weak Reference</dc:creator><description>&lt;p&gt;VS Addin: Fast Add Reference Dialog - No more Coffee Break, Steve!&lt;/p&gt;
</description></item></channel></rss>