﻿<?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?)  » Broken Rules when control is not visiable</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 03 Apr 2026 12:58:26 GMT</lastBuildDate><ttl>20</ttl><item><title>Broken Rules when control is not visiable</title><link>http://forum.strataframe.net/FindPost19451.aspx</link><description>Hi,&lt;br&gt;
&lt;br&gt;
I have a situation where there are broken "required field" rules on the form. But the controls with errors are not visible, because those controls are part of nonactive tab. So, even though users do get "Broken Rules" notification, they can't see error message next to the controls where their attention is required.&lt;br&gt;
Short of redesigning a form and getting rid of tabs, Do you have any suggestions on how to deal with this scenario?</description><pubDate>Thu, 18 Sep 2008 15:35:05 GMT</pubDate><dc:creator>Leonard P.</dc:creator></item><item><title>RE: Broken Rules when control is not visiable</title><link>http://forum.strataframe.net/FindPost19524.aspx</link><description>Glad you found a solution to meet your needs. :)</description><pubDate>Thu, 18 Sep 2008 15:35:05 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Broken Rules when control is not visiable</title><link>http://forum.strataframe.net/FindPost19521.aspx</link><description>Thanks for your reply everyone. &lt;/P&gt;&lt;P&gt;In case someone else is looking for similar solutions, I'd like to share another idea: &lt;/P&gt;&lt;P&gt;Call .CheckRules when user&amp;nbsp;makes&amp;nbsp;a control with broken rules&amp;nbsp;not visible&amp;nbsp;(e.g. user&amp;nbsp;changes&amp;nbsp;tabs) . If broken rules exist for a specific BO, display an &lt;FONT color=#2b91af size=2&gt;InfoBox&amp;nbsp;&lt;FONT color=#1f5080&gt;notification with broken rules. This way user is informed of broken rules as he clicks through the tabs. I just implemented this, it&amp;nbsp;looks&amp;nbsp;good and it's&amp;nbsp;user friendly.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#1f5080&gt;Thanks.&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Thu, 18 Sep 2008 14:24:44 GMT</pubDate><dc:creator>Leonard P.</dc:creator></item><item><title>RE: Broken Rules when control is not visiable</title><link>http://forum.strataframe.net/FindPost19462.aspx</link><description>This is soemthing that we plumbed into our BaseForm within our medical software.&amp;nbsp; Liek the forum that Ivan pointed you to, when you select a broken rule, it will auto-nativate to any tab, parent control, etc. and set the focus to that control.&lt;/P&gt;&lt;P&gt;This really isn't that hard.&amp;nbsp; Just create a recursive method to which you can pass a control and then it ensures that all parent controls are active.&amp;nbsp; You may have to take certain control types into special consideration (i.e. a PanelManager) to make sure that they get activated correctly.&amp;nbsp; But this should be logic that you right one time in your base form (or a shared or static class somewhere that you can pass this over as well).</description><pubDate>Wed, 17 Sep 2008 09:45:07 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Broken Rules when control is not visiable</title><link>http://forum.strataframe.net/FindPost19452.aspx</link><description>Hi Leonard.&lt;/P&gt;&lt;P&gt;Have a look at the posts started here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost16580.aspx"&gt;http://forum.strataframe.net/FindPost16580.aspx&lt;/A&gt;</description><pubDate>Tue, 16 Sep 2008 15:53:34 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>