<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Changing the ErrorProvider Behavior for Loose Controls</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Changing the ErrorProvider Behavior for Loose Controls</description>
  <pubDate>Tue, 18 Jun 2013 16:38:10 -700</pubDate>
  <lastBuildDate>Wed, 06 Jun 2007 13:08:13 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=46</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Changing the ErrorProvider Behavior for Loose Controls : Answer: The following snippet...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=46&amp;PID=113#113</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 46<br /><strong>Posted:</strong> 06-Jun-2007 at 1:08pm<br /><br /><P =Questi&#111;n style="MARGIN: 0in 0in 0pt"><strong><EM><FONT face="Times New Roman" size=3>Answer:</FONT></EM></strong></P><P =Ms&#111;normal style="MARGIN: 8pt 0in 0pt"><FONT face="Times New Roman" size=2>The following snippet shows you how you can gain access to the ErrorProvider of a control to change its properties, or replace it entirely:</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: navy; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // For some </FONT><SPAN style="COLOR: teal">Control</SPAN><FONT color=#808080> pControl, retrieve its data bindings</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><SPAN style="COLOR: blue">foreach</SPAN><FONT color=#808080>(</FONT><SPAN style="COLOR: teal">Binding</SPAN><FONT color=#808080> aBinding </FONT><SPAN style="COLOR: blue">in</SPAN><FONT color=#808080> pControl.DataBindings) {</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT style=": #e6e6e6" face="Courier New" color=#808080 size=2><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Cast the binding to an IdeaBladeBinding</strong></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><SPAN style="COLOR: teal">IdeaBladeBinding</SPAN><FONT color=#808080> binding = aBinding </FONT><SPAN style="COLOR: blue">as</SPAN><FONT color=#808080> </FONT><SPAN style="COLOR: teal">IdeaBladeBinding</SPAN><FONT color=#808080>;</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT style=": #e6e6e6" face="Courier New" color=#808080 size=2><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><SPAN style="COLOR: blue">if</SPAN><FONT color=#808080> (binding != </FONT><SPAN style="COLOR: blue">null</SPAN><FONT color=#808080> &amp;&amp; binding.PropertyName == </FONT><SPAN style="COLOR: maro&#111;n">"SomeBindingPropertyName"</SPAN><FONT color=#808080>) {</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT style=": #e6e6e6" face="Courier New" color=#808080 size=2><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // e.g. Change blinking to never blink.</strong></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><SPAN style="COLOR: teal">ErrorProvider</SPAN><FONT color=#808080> errorProvider = binding.ErrorProvider;</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; errorProvider.BlinkStyle = </FONT><SPAN style="COLOR: teal">ErrorBlinkStyle</SPAN><FONT color=#808080>.NeverBlink;</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><o:p><FONT style=": #e6e6e6" face="Courier New" color=#808080 size=2><strong>&nbsp;</strong></FONT></o:p></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT style=": #e6e6e6" face="Courier New" color=#808080 size=2><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // or</strong></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><o:p><FONT style=": #e6e6e6" face="Courier New" color=#808080 size=2><strong>&nbsp;</strong></FONT></o:p></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT style=": #e6e6e6" face="Courier New" color=#808080 size=2><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // e.g. Replace ErrorProvider entirely</strong></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT style=": #e6e6e6" face="Courier New" color=#808080 size=2><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; binding.ErrorProvider = ModifiedErrorProvider;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT style=": #e6e6e6" face="Courier New" color=#808080 size=2><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</strong></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><strong><FONT style=": #e6e6e6" face="Courier New" color=#808080 size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;}</FONT></strong></P><P =Ms&#111;normal style="MARGIN: 8pt 0in 0pt"><FONT face="Times New Roman" size=2>If, however, you are interested in modifying the default <I>exception-handling</I> behavior of a DevForce data binding, please consult the section in the Developer’s Guide titled “Modifying the Default Error Handling Behavior of the Binding.” This section describes a couple of ways to do this as well as an example of how you can replace the ControlBindingDescriptor’s Error event with your own handler.</FONT></P>]]>
   </description>
   <pubDate>Wed, 06 Jun 2007 13:08:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=46&amp;PID=113#113</guid>
  </item> 
  <item>
   <title>Changing the ErrorProvider Behavior for Loose Controls : Question:  How can I change DevForce&#8217;s...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=46&amp;PID=112#112</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=20" rel="nofollow">Customer</a><br /><strong>Subject:</strong> 46<br /><strong>Posted:</strong> 06-Jun-2007 at 1:06pm<br /><br /><P =Questi&#111;n style="MARGIN: 0in 0in 0pt"><strong><EM><FONT face="Times New Roman" size=3>Question: </FONT></EM></strong></P><P =Ms&#111;normal style="MARGIN: 8pt 0in 0pt"><FONT face="Times New Roman" size=2>How can I change DevForce’s UI behavior in response to a data validation failure?<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>I don’t want the flashing exclamation point!</FONT></P>]]>
   </description>
   <pubDate>Wed, 06 Jun 2007 13:06:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=46&amp;PID=112#112</guid>
  </item> 
 </channel>
</rss>