Working with NumericTextBox in Windows Forms Numeric TextBox (SfNumericTextBox)

ValueChanged Event

This ValueChanged event triggers when the value of the SfNumericTextBox is changed. The Value will be changed according to the ValueChangedMode property.

Event Data

ValueChangedEventArgs contains the following members that provide information specific to this event.

Value changed Event

Members

Description

OldValue This property returns the last Value of the SfNumericTextBox
NewValue This property returns the new Value of the SfNumericTextBox
// Hooking the value changed event
this.numericTextBox.ValueChanged += numericTextBox_ValueChanged;

//Value changed event
private void numericTextBox _ValueChanged(object sender, Syncfusion.WinForms.Input.Events.ValueChangedEventArgs e)
{
	double? newValue = e.NewValue;
	double? oldValue = e.OldValue;
}
' Hooking the value changed event
Private Me.numericTextBox.ValueChanged += AddressOf numericTextBox_ValueChanged

'Value changed event
Private Sub numericTextBox _ValueChanged(ByVal sender As Object, ByVal e As Syncfusion.WinForms.Input.Events.ValueChangedEventArgs)
	Dim newValue As double? = e.NewValue
	Dim oldValue As double? = e.OldValue
End Sub