'Declaration Public Event DefaultCalculationFail As BeforeDefaultCalculationFailEventHandler
public event BeforeDefaultCalculationFailEventHandler DefaultCalculationFail
The event handler receives an argument of type OnDefaultCalculationFailEventArgs containing data related to this event. The following OnDefaultCalculationFailEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel (Inherited from System.ComponentModel.CancelEventArgs) | |
ErrMsg | Gets/Sets the error msg to be displayed |
Operation | current operation |
Values | Gets/Sets array of values being operated on. |
Private Sub UltraCalculatorDropDown1_DefaultCalculationFail(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinEditors.UltraWinCalc.OnDefaultCalculationFailEventArgs) Handles UltraCalculatorDropDown1.DefaultCalculationFail ' This event occurs when the default calculation fails. ' This event is cancellable. Debug.WriteLine("DefaultCalculationFail: Cancel = " + e.Cancel.ToString()) Debug.WriteLine(String.Format("Params: Operation {0}, Error String {1}", e.Operation, e.ErrMsg)) End Sub
using System.Diagnostics; private void ultraCalculatorDropDown1_DefaultCalculationFail(object sender, Infragistics.Win.UltraWinEditors.UltraWinCalc.OnDefaultCalculationFailEventArgs e) { // This event occurs when the default calculation fails. // This event is cancellable. Debug.WriteLine("DefaultCalculationFail: Cancel = " + e.Cancel.ToString()); Debug.WriteLine(string.Format("Params: Operation {0}, Error String {1}",e.Operation, e.ErrMsg )); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2