<?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: A comparison of code environments</title><link>https://www.infopathdev.com:443/forums/thread/35629.aspx</link><pubDate>Wed, 10 Dec 2008 21:45:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35629</guid><dc:creator>pnewhook</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35629.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35629</wfw:commentRss><description>&lt;p&gt;fantastic, thanks for the quick reply&lt;/p&gt;</description></item><item><title>Re: A comparison of code environments</title><link>https://www.infopathdev.com:443/forums/thread/35622.aspx</link><pubDate>Wed, 10 Dec 2008 21:08:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35622</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35622.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35622</wfw:commentRss><description>&lt;p&gt;Do keep in mind the different object models for InfoPath. InfoPath 2003 OM (C#) uses &lt;strong&gt;&lt;em&gt;thisXDocument&lt;/em&gt;&lt;/strong&gt;. You can change your form to use &lt;strong&gt;C# (InfoPath 2003 Compatible) &lt;/strong&gt;under &lt;strong&gt;Tools / Form Options / Programming&lt;/strong&gt;. The 2007 OM (C#) uses &lt;strong&gt;&lt;em&gt;this&lt;/em&gt;&lt;/strong&gt;. You can also make this change in a Visual Studio InfoPath project, you just have to click &lt;strong&gt;Remove Code&lt;/strong&gt; first.&lt;/p&gt;
&lt;p&gt;You will probably see more code samples in the forums and such for the 2003 OM, simply because it has been in use longer. &lt;a href="http://www.bizsupportonline.net/infopath-all-solutions.htm"&gt;This&lt;/a&gt; blog has nice samples for both IP 2003 and 2007, which may help you with some of the differences in the code for the different object models.&lt;/p&gt;</description></item><item><title>A comparison of code environments</title><link>https://www.infopathdev.com:443/forums/thread/35620.aspx</link><pubDate>Wed, 10 Dec 2008 20:43:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35620</guid><dc:creator>pnewhook</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35620.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35620</wfw:commentRss><description>&lt;p&gt;Hi, I&amp;#39;ve been using InfoPath for a little while and I&amp;#39;m now starting to include custom manged code in my designs. However I&amp;#39;m running into difficulties becasue the documentation is hit and miss.&lt;/p&gt;
&lt;p&gt;Do you know of any good resources that compare what is available to InfoPath 2007&amp;nbsp;VSTA code versus that InfoPath forms and&amp;nbsp;Visual Studio code? &lt;/p&gt;
&lt;p&gt;What brought this to light for me was thisXDocument. After searching for it I found that using VSTA doesn&amp;#39;t use this (I&amp;#39;m not even 100% sure of this).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any resources would be great.&lt;/p&gt;</description></item></channel></rss>