<?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: What is the best way to give a message to the user while code is running ?</title><link>https://www.infopathdev.com:443/forums/thread/34651.aspx</link><pubDate>Fri, 21 Nov 2008 06:59:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34651</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34651.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34651</wfw:commentRss><description>&lt;p&gt;Hey Catharine.&lt;/p&gt;
&lt;p&gt;Not sure if this can work while code is running but an idea.&lt;/p&gt;
&lt;p&gt;I use this in browser forms since their are no message boxes.&lt;/p&gt;
&lt;p&gt;Use a section or text field which is hidden most of the time. I often will make it in red or soemthing that will draw their attention to it. Also put it clode to the submit button.&lt;/p&gt;
&lt;p&gt;But unhide it and then rehide it again.&amp;nbsp; Create a field in your form called hide. Default it to true.&amp;nbsp; Make the section conditionaly hide when the hide field is true.&amp;nbsp; When the user clicks set hide to false. At the end set hide back to true.&lt;/p&gt;
&lt;p&gt;I think this could work if the form will refresh while the code is running.&amp;nbsp; Should be simple to test for you.&lt;/p&gt;</description></item><item><title>What is the best way to give a message to the user while code is running ?</title><link>https://www.infopathdev.com:443/forums/thread/34598.aspx</link><pubDate>Thu, 20 Nov 2008 14:18:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34598</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34598.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34598</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am using InfoPath 2007 and VB.&amp;nbsp; My programming knowledge is limited.&lt;/p&gt;
&lt;p&gt;I am running some code which may take some time (sending attached files to SharePoint there could be as many as 20 different files)&amp;nbsp; and I would like to display a message something like &amp;quot;This process may take some time, please wait...&amp;quot;.&amp;nbsp; I don&amp;#39;t want to use a message box which requires user intervention.&lt;/p&gt;
&lt;p&gt;I would like to &amp;#39;publish&amp;#39; the message when my code starts... and &amp;#39;unpublish&amp;#39;/remove it when my code has finished.&lt;/p&gt;
&lt;p&gt;I had hoped I could switch view to a view displaying the message and then switch back afterwards - but after reading &lt;a href="http://www.infopathdev.com/forums/p/7655/28007.aspx#28007"&gt;http://www.infopathdev.com/forums/p/7655/28007.aspx#28007&lt;/a&gt;&amp;nbsp;it doesn&amp;#39;t look like that is feasible.&lt;/p&gt;
&lt;p&gt;This code is part of the submit process and can be triggered from any of my other (7+) views.&lt;/p&gt;
&lt;p&gt;Thank&amp;nbsp; you&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item></channel></rss>