<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: capture close event in infoPath 2003 or disable close (X) button on upper right corner</title><link>https://www.infopathdev.com:443/forums/thread/63613.aspx</link><pubDate>Thu, 27 Jan 2011 13:54:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63613</guid><dc:creator>HamishAhern</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63613.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=63613</wfw:commentRss><description>yes I have the same problem, anybody got a fix for this?</description></item><item><title>Re: capture close event in infoPath 2003 or disable close (X) button on upper right corner</title><link>https://www.infopathdev.com:443/forums/thread/37222.aspx</link><pubDate>Fri, 16 Jan 2009 13:33:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37222</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37222.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37222</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To my knowledge, we cannot disable the X button on the upper right corner of the InfoPath window.&amp;nbsp; When you close the form _Shutdown() which is added by default when you use the form with code will be called.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>capture close event in infoPath 2003 or disable close (X) button on upper right corner</title><link>https://www.infopathdev.com:443/forums/thread/36898.aspx</link><pubDate>Sat, 10 Jan 2009 12:43:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36898</guid><dc:creator>suriitano</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36898.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36898</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Does any know how to capture a &amp;quot;close&amp;quot; event in InfoPath 2003? Or if this does not exist (which doesn&amp;#39;t seem likely after several searches), is it possible to disable the &amp;quot;x&amp;quot; button on the upper right corner of the Infopath window? It&amp;#39;s just that I need to run some clean up code before user closes the application. I understand that one option would be to add a button that calls a close command; however, because it&amp;#39;s very essential that the clean up code runs before closing the application (otherwise the previously accessed records will remain unavailable for other users), I don&amp;#39;t think doing this would be enough.&lt;/p&gt;
&lt;p&gt;I am not an expert coder. I am only using vbscript to code. If anyone can point me in the right direction, I&amp;#39;d appreciate that a lot.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;-Suri&lt;/p&gt;</description></item></channel></rss>