<?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: Switching Views Programmatically in a windows form</title><link>https://www.infopathdev.com:443/forums/thread/50063.aspx</link><pubDate>Fri, 18 Dec 2009 21:53:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50063</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50063.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50063</wfw:commentRss><description>&lt;p&gt;Hello Chris,&lt;/p&gt;
&lt;p&gt;... and welcome to our forum.&lt;/p&gt;
&lt;p&gt;Inside of the form you can use the following code line to switch between views:&lt;/p&gt;
&lt;p&gt;&lt;font face="courier new,courier"&gt;this&lt;font size="2"&gt;.ViewInfos.SwitchView(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;YourViewName&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;In your case that you host an Infopath form in a client application I guess that the following article can help you...&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.codeproject.com/KB/cs/InfoPath_WinForms_app.aspx"&gt;http://www.codeproject.com/KB/cs/InfoPath_WinForms_app.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;</description></item><item><title>Switching Views Programmatically in a windows form</title><link>https://www.infopathdev.com:443/forums/thread/50062.aspx</link><pubDate>Fri, 18 Dec 2009 21:01:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50062</guid><dc:creator>chrisdebona</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50062.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=50062</wfw:commentRss><description>&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a program that is a tab control that displays via a web browser an infopath form. This form has 7 views. I am using sharepoint to host the forms which is where i query and retreive the forms. THese forms are specific to each client of ours. i need to be able to have a button on my windows form have an event that opens the form up and displays view 7. I currently have the button opening the form and creating the forms programmatically, but it goes to the default view. Is their a way to open this form up, with my button and open the alternate view that is stored on my sharepoint server?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any help would be great!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;</description></item></channel></rss>