<?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: Get current form using C#</title><link>https://www.infopathdev.com:443/forums/thread/93287.aspx</link><pubDate>Thu, 26 Sep 2013 10:28:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93287</guid><dc:creator>andy123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93287.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=93287</wfw:commentRss><description>i would like to appreciate you for sharing such a great info with us</description></item><item><title>Re: Get current form using C#</title><link>https://www.infopathdev.com:443/forums/thread/19306.aspx</link><pubDate>Mon, 23 Apr 2007 18:31:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19306</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19306.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19306</wfw:commentRss><description>&lt;p&gt;Hi MarcCarter,&lt;/p&gt;&lt;p&gt;Check the below link how to focus the active window using in VB,&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.vbforums.com/showthread.php?t=460143"&gt;http://www.vbforums.com/showthread.php?t=460143&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Get current form using C#</title><link>https://www.infopathdev.com:443/forums/thread/19222.aspx</link><pubDate>Thu, 19 Apr 2007 17:43:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19222</guid><dc:creator>MarcCarter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19222.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19222</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I am trying to get the current form in order to print it, also the print function is controled by a button on the form.&lt;/p&gt;&lt;p&gt;There could be as many as 8 forms open at once for the user, so I need to find the correct one in order to print it.&lt;/p&gt;&lt;p&gt;I know that I can get the first form opened by this code:&amp;nbsp; XmlForm aForm = this.Application.XmlForms[0].&lt;/p&gt;&lt;p&gt;Therefore I know that I could itterate through the forms this way, the only problem is that I don&amp;#39;t know what to compare in order to get the correct form.&lt;/p&gt;&lt;p&gt;Could someone give me any ideas?&lt;/p&gt;</description></item></channel></rss>