<?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 the form on the onload event</title><link>https://www.infopathdev.com:443/forums/thread/14270.aspx</link><pubDate>Thu, 02 Feb 2006 14:01:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14270</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14270.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14270</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;It's what I need thanks for this tricks&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Re: Close the form on the onload event</title><link>https://www.infopathdev.com:443/forums/thread/14269.aspx</link><pubDate>Tue, 31 Jan 2006 17:29:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14269</guid><dc:creator>dhtroy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14269</wfw:commentRss><description>Well, this will "close" the InfoPath form, however, it will leave the IDE open ...&lt;br /&gt;&lt;br /&gt;in the load event, just set the return status to 'false'&lt;br /&gt;&lt;br /&gt;e.ReturnStatus = false&lt;br /&gt;&lt;br /&gt;This will cause the load event to fail, and your form will cease to open.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;D.</description></item><item><title>Re: Close the form on the onload event</title><link>https://www.infopathdev.com:443/forums/thread/14268.aspx</link><pubDate>Tue, 31 Jan 2006 10:28:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14268</guid><dc:creator>sandeep</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14268.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14268</wfw:commentRss><description>&lt;br /&gt;Hi Virgul,&lt;br /&gt;&lt;br /&gt;I think it is not possible to close the form in onload event.&lt;br /&gt;But it is possible through taskpane.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sandeep&lt;br /&gt;InfoPath Dev India</description></item><item><title>Close the form on the onload event</title><link>https://www.infopathdev.com:443/forums/thread/12761.aspx</link><pubDate>Tue, 31 Jan 2006 08:37:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12761</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12761.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12761</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I want to make some test before open my form if the test is not good I want to close the form! But the problem is if I try to make:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;thisApplication.XDocuments.Close(0);&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;An error is send: the index is out of bound!&lt;br /&gt;&lt;br /&gt;Is it possible to close my form on the onload event?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;</description></item></channel></rss>