this.DisplayErrorDialog = true; this.DisplayErrorProvider = true;But this still does not fire the error provider.
>using System; >using System.Drawing; >using System.Collections; >using System.ComponentModel; >using System.Windows.Forms; >using OakLeaf.MM.Main.Business; >using Apps4u.WinApp.Forms.Business; > >namespace A4U.Internal >{ > /// <summary> > /// Summary description for Company. > /// </summary> > public class Company : Apps4u.WinApp.Forms.Maintenance.a4uCompanyMaintenance > { > public Company() > { > // > // Required for Windows Form Designer support > // > InitializeComponent(); > // > // TODO: Add any constructor code after InitializeComponent call > // > } > > /// <summary> > /// Clean up any resources being used. > /// </summary> > protected override void Dispose( bool disposing ) > { > if( disposing ) > { > if(components != null) > { > components.Dispose(); > } > } > base.Dispose( disposing ); > } > > #region Windows Form Designer generated code > /// <summary> > /// Required method for Designer support - do not modify > /// the contents of this method with the code editor. > /// </summary> > private void InitializeComponent() > { > this.components = new System.ComponentModel.Container(); > this.Size = new System.Drawing.Size(300,300); > this.Text = "Company"; > } > #endregion >>//-->1
> protected override void DisplayBrokenRuleDialog(mmBusinessRuleBase bizRule) > { > base.DisplayBrokenRuleDialog (bizRule); > a4uBrokenRulesForm form = new a4uBrokenRulesForm((mmBusinessRule)bizRule); > form.Show(); > } > >>//-->2
> protected override void DisplayBrokenRules(mmBusinessRule bizRule) > { > base.DisplayBrokenRules (bizRule); > a4uBrokenRulesForm form = new a4uBrokenRulesForm((mmBusinessRule)bizRule); > form.Show(); > > } > >>//-->3
> protected virtual void DisplayBrokenRuleDialog (mmBusinessRule bizRule) > { > a4uBrokenRulesForm form = new a4uBrokenRulesForm(bizRule); > form.Show(); > } > > > > } >} > >