Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winform error icons not appearing
Message
 
To
22/06/2008 17:26:34
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01326039
Message ID:
01326421
Views:
13
Larry,

>on a (mmBusinessForm) form I have a mmButton (not mmButtonSave) where I do
>
>mmSaveDataResult RulesResult;
>this.oList.Rules.ClearAll();
>RulesResult = this.oList.CheckRules();
>if (RulesResult == mmSaveDataResult.RulesPassed)
>{
> do save etc.
>}
>else
>{
> this.DisplayBrokenRules(this.oList.Rules);
>}
>

>I can get the error message and dialogs using form DisplayErrorDialog as documented, however I cannot seem to get the icons to appear next to the fields on the windows form. I've looked through the sample app and docs, no help. Any suggestions?

First of all, I recommend making sure that you have a user interface control that has its BindingSourceMember set to the same column/property you are checking in your business rule. After that, I recommend setting a breakpoint in mmBusinessForm.DisplayBrokenRules() to make sure that DisplayErrorProviderRules() is being executed.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform