Version

DefaultCalculationFail Event (UltraCalculator)

Fired on Failure of default calculation
Syntax
'Declaration
 
Public Event DefaultCalculationFail As BeforeDefaultCalculationFailEventHandler
public event BeforeDefaultCalculationFailEventHandler DefaultCalculationFail
Event Data

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.

PropertyDescription
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.
Example
This event occurs when the default calculation fails. 'This event is cancellable.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

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 ));

	}
Requirements

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

See Also