<?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: Disable close cross</title><link>https://www.infopathdev.com:443/forums/thread/25934.aspx</link><pubDate>Fri, 25 Jan 2008 20:52:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25934</guid><dc:creator>hockeyjac</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25934.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25934</wfw:commentRss><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;If we figure something out, I will post it here.&lt;/p&gt;</description></item><item><title>Re: Disable close cross</title><link>https://www.infopathdev.com:443/forums/thread/25933.aspx</link><pubDate>Fri, 25 Jan 2008 20:49:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25933</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25933.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25933</wfw:commentRss><description>&lt;p&gt;Hi HockeyJac and welcome,&lt;/p&gt;
&lt;p&gt;Unfortunately, I never got a reply from Frank and he is now a program manager at Microsoft. My recollection was that he had to write code to get the window handle for InfoPath and then using Windows GDI functions disable the cross. It&amp;#39;s not something that we have time to investigate now for the forum, and I&amp;#39;m sorry we can&amp;#39;t provide free help here. I&amp;#39;m guessing it&amp;#39;s a good&amp;nbsp;4 hours of developer time to investigate and write the code. If Frank had sent the code, it would have been maybe 30 minutes to integrate with existing code. &lt;/p&gt;</description></item><item><title>Re: Disable close cross</title><link>https://www.infopathdev.com:443/forums/thread/25932.aspx</link><pubDate>Fri, 25 Jan 2008 20:45:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25932</guid><dc:creator>hockeyjac</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25932.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25932</wfw:commentRss><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Did this ever get posted to the site?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Thanks.&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Disable close cross</title><link>https://www.infopathdev.com:443/forums/thread/14911.aspx</link><pubDate>Fri, 24 Nov 2006 19:43:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14911</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14911.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14911</wfw:commentRss><description>Hi Thierry,&lt;br /&gt;Frank Dauche, who used to actively post in this forum, found a way to do this using the technique you describe. It was a little tricky to get the correct window handle, but so long as you have some managed code, you can access the properties for your window. I asked him to post his solution, but he got hired at Microsoft and has been busy ever since. I'll ping him again and see what he is doing. Bottom line: it's doable.&lt;br /&gt;Cheers!</description></item><item><title>Re: Disable close cross</title><link>https://www.infopathdev.com:443/forums/thread/14910.aspx</link><pubDate>Fri, 24 Nov 2006 18:09:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14910</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14910.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14910</wfw:commentRss><description>As per our knowledges it is not possible, please let us know if you find any solution. Thanks!</description></item><item><title>Disable close cross</title><link>https://www.infopathdev.com:443/forums/thread/12987.aspx</link><pubDate>Wed, 22 Nov 2006 15:56:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12987</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12987.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12987</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I have seen that on winform you can disable "the close cross" (the red cross for close the form (up right)) and I asking me if this possible to make in Infopath?&lt;br /&gt;&lt;br /&gt;the code for Winform:&lt;br /&gt;&lt;pre&gt;private const int CS_NOCLOSE = 0x0200;&lt;br /&gt;&lt;br /&gt;protected override CreateParams CreateParams&lt;br /&gt;{&lt;br /&gt;       get&lt;br /&gt;       {&lt;br /&gt;           CreateParams cp = base.CreateParams;&lt;br /&gt;           cp.ClassStyle |= CS_NOCLOSE;&lt;br /&gt;           return cp;&lt;br /&gt;       }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Thanks for your feedback&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;</description></item></channel></rss>