<?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: Close InfoPath down</title><link>https://www.infopathdev.com:443/forums/thread/13448.aspx</link><pubDate>Wed, 10 Aug 2005 16:25:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13448</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13448.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13448</wfw:commentRss><description>Hi rbbivens,&lt;br /&gt;&lt;br /&gt;Probably you might need thisXDocument.View.Window.Close(true);	to close the current working infopath window.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Close InfoPath down</title><link>https://www.infopathdev.com:443/forums/thread/12524.aspx</link><pubDate>Wed, 10 Aug 2005 14:52:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12524</guid><dc:creator>rbbivens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12524.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12524</wfw:commentRss><description>I have tried to use the Application object's Quit method to close InfoPath using C#, but I get a "System.Security.SecurityException"&lt;br /&gt;&lt;br /&gt;Specifically, when I find that an unauthorized user is attempting to open the form, I use the following syntax in an attempt to close the local copy of InfoPath:&lt;br /&gt;&lt;br /&gt;// thisApplication is an instance of the Application object&lt;br /&gt;thisApplication.Quit(false);&lt;br /&gt;&lt;br /&gt;Does anyone have an idea of what I might be doing wrong?&lt;br /&gt;&lt;br /&gt;Is there another approach?&lt;br /&gt;&lt;br /&gt;Thanks in advance</description></item></channel></rss>