<?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: Show/Hide Animated Gif or Loading Notification When Query Is Being Executed</title><link>https://www.infopathdev.com:443/forums/thread/28924.aspx</link><pubDate>Sat, 24 May 2008 04:44:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28924</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28924.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=28924</wfw:commentRss><description>&lt;p&gt;It would probably be better to look at using web services and improving the form performance :)&lt;/p&gt;
&lt;p&gt;You can always use a message box before the query is executed.&lt;/p&gt;
&lt;p&gt;Otherwise there would probably be some code options but that might require full trust.&lt;/p&gt;</description></item><item><title>Show/Hide Animated Gif or Loading Notification When Query Is Being Executed</title><link>https://www.infopathdev.com:443/forums/thread/28902.aspx</link><pubDate>Fri, 23 May 2008 15:45:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28902</guid><dc:creator>jgill</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28902.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=28902</wfw:commentRss><description>&lt;p&gt;I am trying to find a way to show an animated .gif (e.g. something that the users would be familar with like the spinner graphics often used with AJAX) when a DB call is being made and the query results are being retrieved and populated into form fields.&amp;nbsp; The query sometimes takes a bit, and when it is completed I would like the image or loading notification to be hidden again (I have already tried adding the cursor hourglass, but it does not appear to be enough as most users ignore it and wonder what is going on when the query is occuring).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// The following function handler is created by Microsoft Office InfoPath. Do not&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// modify the type or number of arguments.&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;[&lt;/font&gt;&lt;font color="#008080" size="2"&gt;InfoPathEventHandler&lt;/font&gt;&lt;font size="2"&gt;(MatchPath=&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;btnLookupCoInventor&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, EventType=&lt;/font&gt;&lt;font color="#008080" size="2"&gt;InfoPathEventType&lt;/font&gt;&lt;font size="2"&gt;.OnClick)]&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; btnLookupCoInventor_OnClick(&lt;/font&gt;&lt;font color="#008080" size="2"&gt;DocActionEvent&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Write your code here.&amp;nbsp; Removed the actual code&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000" size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#008000" size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt;; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>