<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Using 2003 Compatible C# Code in VS2008</title><link>https://www.infopathdev.com:443/forums/thread/51202.aspx</link><pubDate>Sat, 30 Jan 2010 13:49:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51202</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51202.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51202</wfw:commentRss><description>&lt;p&gt;Well, I&amp;#39;m sure what I&amp;#39;m about to suggest is not recommended. So, the usual caveats about backing up anything you care about, etc, apply. I just tried this, and &lt;strong&gt;when&lt;/strong&gt; it failed, I deleted everything in the FormCode.Designer.cs file and saved it. &lt;/p&gt;
&lt;p&gt;Then I added a new event to my form code (added a button to my form, added code) and, after a brief pause while VS nicely rewrote the FormCode.Designer.cs file, I was in business. Previewed my form, clicked my button and everything was sunshine and buttercups.&lt;/p&gt;</description></item><item><title>Using 2003 Compatible C# Code in VS2008</title><link>https://www.infopathdev.com:443/forums/thread/51069.aspx</link><pubDate>Thu, 28 Jan 2010 02:51:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51069</guid><dc:creator>blackhawk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51069</wfw:commentRss><description>&lt;p&gt;I have found similar postings to people having this problem, but never did I find a solution.&lt;/p&gt;
&lt;p&gt;It seems that with VS2008, if you create a 2007 InfoPath project, remove the code, and try to use C# (2003 Compatible) object model, it creates 6 compiler errors.&amp;nbsp;&amp;nbsp; Complaining that it cannot find type or namespace &amp;#39;VisualStudio&amp;#39; nor can it find &amp;#39;InfoPath&amp;#39; in the Microsoft.Office namespace.&lt;/p&gt;
&lt;p&gt;Apparently when you remove code, it does not rebuild the FormCode.Designer.cs file to conform to IP2003.&amp;nbsp;&amp;nbsp; Instead, it seems to leave it as IP2007 object model, so the compile fails.&lt;/p&gt;
&lt;p&gt;Anyone have any solution around this problem?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>