﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Error handling...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 12:02:53 GMT</lastBuildDate><ttl>20</ttl><item><title>Error handling...</title><link>http://forum.strataframe.net/FindPost3147.aspx</link><description>Can I use the broken rule mechanism in the form to validate my own controls? Is there a way that I can check a bunch of things as a sort of validation then have it all pop up like you do when there are broken rules...&lt;br&gt;
&lt;br&gt;</description><pubDate>Thu, 28 Sep 2006 13:51:36 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Error handling...</title><link>http://forum.strataframe.net/FindPost3169.aspx</link><description>Yes, it does help to be efficient, but sometimes, in some cases, like this one, you have to do things by hand, and adding extraneous broken rules to a business object might cause other issues but if you have a reference to the form, you can do just about anything :)&amp;nbsp; You can always add your own error provider as well... it's just a component listed in the "All Windows Forms" toolbox tab.</description><pubDate>Thu, 28 Sep 2006 13:51:36 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error handling...</title><link>http://forum.strataframe.net/FindPost3162.aspx</link><description>Thanks Ben that is more of what I was looking for... I was merely saying that I liked the mechanism where you added all the broken rules to a collection and then it populated all the error providers and displayed an Info box. I was just curious if there was a way to use that functionality anywhere other than a BO.&lt;br&gt;
&lt;br&gt;
Ben's answer helps because now I can use the error provider you guys added to the form without adding my own.  It seems trivial but I try my best to be effcient. :hehe: sometimes it works.</description><pubDate>Thu, 28 Sep 2006 10:00:38 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Error handling...</title><link>http://forum.strataframe.net/FindPost3158.aspx</link><description>The error provider itself is part of the StrataFrame form, not the business object, so you can use methods on the form to set the error provider if necessary like this:&lt;/P&gt;&lt;P&gt;'-- Set a control in error&lt;BR&gt;Me.SetErrorProvider(Me.TextBox1, "Error message")&lt;/P&gt;&lt;P&gt;'-- Clear error on control&lt;BR&gt;Me.SetErrorProvider(Me.TextBox1, String.Empty)&lt;/P&gt;&lt;P&gt;'-- Clear the errors on all controls&lt;BR&gt;Me.ClearErrorProvider()</description><pubDate>Thu, 28 Sep 2006 09:50:08 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Error handling...</title><link>http://forum.strataframe.net/FindPost3154.aspx</link><description>Sorry if this wasn't the answser you were looking for :ermm:</description><pubDate>Thu, 28 Sep 2006 09:31:11 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Error handling...</title><link>http://forum.strataframe.net/FindPost3152.aspx</link><description>Thats pretty much what I wanted to know.  Thanks.</description><pubDate>Thu, 28 Sep 2006 08:40:09 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Error handling...</title><link>http://forum.strataframe.net/FindPost3151.aspx</link><description>Well, I don't know what you are trying to accomplish, but you can just add a broken rule to a business object and have it do it for you.&amp;nbsp; Otherwise you will need to create your own error provider and associate it with a control to display errors like that.</description><pubDate>Thu, 28 Sep 2006 08:18:04 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>