<?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: How to get current form name in c# ?</title><link>https://www.infopathdev.com:443/forums/thread/15099.aspx</link><pubDate>Wed, 14 Feb 2007 01:15:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15099</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15099.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15099</wfw:commentRss><description>Thanks folwarczy!</description></item><item><title>Re: How to get current form name in c# ?</title><link>https://www.infopathdev.com:443/forums/thread/15098.aspx</link><pubDate>Wed, 14 Feb 2007 00:50:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15098</guid><dc:creator>folwarczny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15098.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15098</wfw:commentRss><description>Maybe it can help somebody - add this as on click event to button:&lt;br /&gt;&lt;pre&gt;string location = thisXDocument.Solution.URI;&lt;br /&gt;XDocument oXdNewForm = thisApplication.XDocuments.NewFromSolution(location);&lt;/pre&gt;</description></item><item><title>Re: How to get current form name in c# ?</title><link>https://www.infopathdev.com:443/forums/thread/15097.aspx</link><pubDate>Tue, 13 Feb 2007 09:53:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15097</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15097.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15097</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Check out this link, may be helpful for you,&lt;br /&lt;a target="_blank" href=http://infopathdev.com/forums/topic.asp?TOPIC_ID=4271&gt;http://infopathdev.com/forums/topic.asp?TOPIC_ID=4271&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks.</description></item><item><title>Re: How to get current form name in c# ?</title><link>https://www.infopathdev.com:443/forums/thread/15096.aspx</link><pubDate>Tue, 13 Feb 2007 09:15:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15096</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15096.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15096</wfw:commentRss><description>Have you looked at the SolutionURI?</description></item><item><title>How to get current form name in c# ?</title><link>https://www.infopathdev.com:443/forums/thread/13057.aspx</link><pubDate>Tue, 13 Feb 2007 02:16:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13057</guid><dc:creator>folwarczny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13057.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13057</wfw:commentRss><description>Hello again - here I have one question i need to implement event for buton which will open another instance of my current form. i knew how to do this that way :&lt;br /&gt;&lt;pre&gt;string locationInSystem = System.Environment.CurrentDirectory.ToString();&lt;br /&gt;string location = locationInSystem + "\\" + "myform.xsn";  &lt;br /&gt;XDocument oXdNewForm = thisApplication.XDocuments.NewFromSolution(location);&lt;/pre&gt;&lt;br /&gt;but I need to hardcode my form name ( my code only gets current form location) I want to do this as hmm automate :) - is possible to put there some kind of function instead of "myform.xsn" ??&lt;br /&gt;&lt;br /&gt;I will be very greatufull for any help</description></item></channel></rss>