<?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>Re: InfoPath Auto Exit</title><link>https://www.infopathdev.com:443/forums/thread/33391.aspx</link><pubDate>Wed, 22 Oct 2008 22:34:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33391</guid><dc:creator>Harij</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33391</wfw:commentRss><description>&lt;p&gt;Thanks guys, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Sandhaypati&amp;#39;s code worked fine.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;
&lt;p&gt;Hari :) &lt;/p&gt;</description></item><item><title>Re: InfoPath Auto Exit</title><link>https://www.infopathdev.com:443/forums/thread/33339.aspx</link><pubDate>Wed, 22 Oct 2008 07:26:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33339</guid><dc:creator>chandrakanth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33339.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33339</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Please use below line of code for closing your infopath Application.Hope this will help you.&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;thisApplication.Quit(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: InfoPath Auto Exit</title><link>https://www.infopathdev.com:443/forums/thread/33335.aspx</link><pubDate>Wed, 22 Oct 2008 06:50:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33335</guid><dc:creator>sandhyapati</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33335.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33335</wfw:commentRss><description>&lt;p&gt;Hi Hari,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You can&amp;nbsp;use the following code for closing the InfoPath Application&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;Application.ActiveWindow.Close();&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: InfoPath Auto Exit</title><link>https://www.infopathdev.com:443/forums/thread/33284.aspx</link><pubDate>Tue, 21 Oct 2008 05:19:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33284</guid><dc:creator>phamj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33284.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33284</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I had this problem before - but I think I gave up and decided to use the Rules instead of scripting.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;If you have a button control on your form already just add a rule to Submit to where ever and then a rule for &amp;quot;Close the form&amp;quot;&lt;/p&gt;</description></item><item><title>Re: InfoPath Auto Exit</title><link>https://www.infopathdev.com:443/forums/thread/33282.aspx</link><pubDate>Tue, 21 Oct 2008 03:29:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33282</guid><dc:creator>Harij</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33282.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33282</wfw:commentRss><description>&lt;p&gt;Hi Shiva, &lt;/p&gt;
&lt;p&gt;Thanks for that , but the above code will close only the form. &lt;/p&gt;
&lt;p&gt;I need to close the whole InfoPath application.&lt;/p&gt;
&lt;p&gt;Any thoughts?&lt;/p&gt;</description></item><item><title>Re: InfoPath Auto Exit</title><link>https://www.infopathdev.com:443/forums/thread/33281.aspx</link><pubDate>Tue, 21 Oct 2008 03:19:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33281</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33281.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33281</wfw:commentRss><description>&lt;p&gt;
 
  Normal
  0
  
  
  false
  false
  false
  
   
   
   
   
   
  
  MicrosoftInternetExplorer4
 

 
 




 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&amp;quot;Table Normal&amp;quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:&amp;quot;&amp;quot;;
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:&amp;quot;Times New Roman&amp;quot;;
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}

Hello,

&lt;/p&gt;&lt;p&gt;Here is the code to close
the form when user click on button, &lt;/p&gt;

&lt;p&gt;XDocument.View.Window.Close(true);
&lt;/p&gt;



&amp;nbsp;</description></item><item><title>InfoPath Auto Exit</title><link>https://www.infopathdev.com:443/forums/thread/33277.aspx</link><pubDate>Tue, 21 Oct 2008 02:31:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33277</guid><dc:creator>Harij</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33277.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33277</wfw:commentRss><description>&lt;font size="2"&gt;
&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can anyone help me with the below&amp;nbsp;issue? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Some of you may already know that the InfoPath application remains open after the &amp;#39;Submit&amp;#39; button is clicked. The form itself closes, but the InfoPath window sits there needlessly. I have made a couple of attempts in my time to resolve this, and to be honest, I have made very little progress.&lt;/p&gt;
&lt;p&gt;Is any way to Close InfoPath Application? &lt;/p&gt;
&lt;p&gt;Any thoughts?&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Hari&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>