Version

BeforeExitEditMode Event (UltraNumericEditorBase)

Fired before the control exits edit mode.
Syntax
'Declaration
 
Public Event BeforeExitEditMode As Infragistics.Win.BeforeExitEditModeEventHandler
public event Infragistics.Win.BeforeExitEditModeEventHandler BeforeExitEditMode
Event Data

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

PropertyDescription
ApplyChanges  
Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
IsForcingExit  
Example
This sample listens to the BeforeExitEditMode event of the UltraEditor

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 UltraEditor1_BeforeExitEditMode(ByVal sender As Object, ByVal e As Infragistics.Win.BeforeExitEditModeEventArgs) Handles UltraComboEditor1.BeforeExitEditMode
     
Debug.WriteLine("BeforeExitEditMode Cancel = " + e.Cancel.ToString() + "Apply Changes = " + e.ApplyChanges.ToString())

 End Sub
using System.Diagnostics;

	private void ultraEditor1_BeforeExitEditMode(object sender, Infragistics.Win.BeforeExitEditModeEventArgs e)
	{

		System.Diagnostics.Debug.WriteLine("BeforeExitEditMode Cancel = " + e.Cancel.ToString() + "Apply Changes = " + e.ApplyChanges.ToString());

	}
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