<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Custom toolbar button click events are not firing with infopath 2007</title><link>https://www.infopathdev.com:443/forums/thread/35120.aspx</link><pubDate>Tue, 02 Dec 2008 10:06:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35120</guid><dc:creator>sreedhar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35120.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35120</wfw:commentRss><description>&lt;p&gt;I use VS 2008, &amp;nbsp;Infopath 2007 with C#. &lt;/p&gt;
&lt;p&gt;The declaration in the manifest: &lt;br /&gt;&amp;lt;xsf:toolbar caption=&amp;quot;MyToolbar&amp;quot; name=&amp;quot;MyToolbar&amp;quot;&amp;gt; &lt;br /&gt;&amp;lt;xsf:button name=&amp;quot;Save&amp;quot; caption=&amp;quot;Save&amp;quot;&amp;gt;&amp;lt;/xsf:button&amp;gt; &lt;br /&gt;&amp;lt;/xsf:toolbar&amp;gt; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The link to the event in the internal startup: &lt;br /&gt;((ButtonEvent)EventManager.ControlEvents[&amp;quot;Save&amp;quot;]).Clicked += new &lt;br /&gt;ClickedEventHandler(Save_Clicked); &lt;/p&gt;
&lt;p&gt;the event in my code: &lt;br /&gt;public void Save_Clicked(object sender, ClickedEventArgs e) &lt;br /&gt;{&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;MessageBox.Show(&amp;quot;Hello world&amp;quot;); &lt;br /&gt;} &lt;/p&gt;
&lt;p&gt;There are no compile time errors, also I am able to publish the template. But the event handler is never fired.&lt;/p&gt;
&lt;p&gt;With Infopath form 2003, the toolbar button click events used to work perfectly.&lt;/p&gt;
&lt;p&gt;Appreciate your help in resolving my issue with infopath 2007.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>