'Declaration Public Event BeforeActionButtonPressed As BeforeCalculateImmediateEventHandler
public event BeforeCalculateImmediateEventHandler BeforeActionButtonPressed
The event handler receives an argument of type OnCalculateImmediateEventArgs containing data related to this event. The following OnCalculateImmediateEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel (Inherited from System.ComponentModel.CancelEventArgs) | |
CurrentValue | Gets/Sets CurrentValue |
CurrentValueDecimal | Get/Sets the current value as decimal. |
Operation | Operation string, this value may be changed by the user and handled by the user. |
Private Sub UltraCalculatorDropDown1_BeforeActionButtonPressed(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinEditors.UltraWinCalc.OnCalculateImmediateEventArgs) Handles UltraCalculatorDropDown1.BeforeActionButtonPressed ' This event fires before a CalculatorButton with the Type designation of 'ActionButton' is pressed. ' This event provides the parameters of the calculation which are modifiable. The ' event itself is cancellable. Debug.WriteLine("BeforeActionButtonPressed: Cancel = " + e.Cancel.ToString()) Debug.WriteLine(String.Format("Params: Operation {0}, Current Value {1}", e.Operation, e.CurrentValue)) End Sub
using System.Diagnostics; private void ultraCalculatorDropDown1_BeforeActionButtonPressed(object sender, Infragistics.Win.UltraWinEditors.UltraWinCalc.OnCalculateImmediateEventArgs e) { // This event fires before a CalculatorButton with the Type designation of 'ActionButton' is pressed. // This event provides the parameters of the calculation which are modifiable. The // event itself is cancellable. Debug.WriteLine("BeforeActionButtonPressed: Cancel = " + e.Cancel.ToString()); Debug.WriteLine(string.Format("Params: Operation {0}, Current Value {1}",e.Operation, e.CurrentValue)); }
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