Version

BeforeButtonClicked Event (UltraCalculatorDropDown)

Fires before any button is clicked
Syntax
'Declaration
 
Public Event BeforeButtonClicked As BeforeButtonClickedEventHandler
public event BeforeButtonClickedEventHandler BeforeButtonClicked
Event Data

The event handler receives an argument of type OnBeforeButtonClickedEventArgs containing data related to this event. The following OnBeforeButtonClickedEventArgs properties provide information specific to this event.

PropertyDescription
Button The button pressed
Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
Example
This event fires when the user presses any button. It 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_BeforeButtonClicked(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinEditors.UltraWinCalc.OnBeforeButtonClickedEventArgs) Handles UltraCalculatorDropDown1.BeforeButtonClicked
     
' This event fires when the user presses any button. It is cancellable.
     Debug.WriteLine(String.Format("BeforeButtonClicked {0}", e.Button.Text))

 End Sub
using System.Diagnostics;

	private void ultraCalculatorDropDown1_BeforeButtonClicked(object sender, Infragistics.Win.UltraWinEditors.UltraWinCalc.OnBeforeButtonClickedEventArgs e)
	{
		
		// This event fires when the user presses any button. It is cancellable.
		Debug.WriteLine(string.Format("BeforeButtonClicked {0}",e.Button.Text));			

	}
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