- BindableValueChanged
- ClipTextChanged
- FormattedTextChanged
- IntegerValueChanged
- SetNull
- ValidationError
Contact Support
Integertextbox Events in Windows Forms Integer TextBox
4 Feb 20254 minutes to read
The list of events and a detailed explanation about each of them is given in the following sections.
- BindableValueChanged
- ClipTextChanged
- FormattedTextChanged
- IntegerValueChanged
- SetNull
- ValidationError
BindableValueChanged
This BindableValueChanged event occurs when the BindableValue property is changed. The BindableValue property is a wrapper property that indicates the value. This property can be used to set the value of the control to ‘Null’.
The event handler receives an argument of type EventArgs containing data related to this event.
private void integerTextBox1_BindableValueChanged(object sender, EventArgs e)
{
Console.WriteLine(" BindableValueChanged event is raised ");
}
Private Sub integerTextBox1_BindableValueChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" BindableValueChanged event is raised ")
End Sub
ClipTextChanged
This ClipTextChanged event occurs when the ClipText property is changed. The ClipText property returns the clipped text without the formatting.
The event handler receives an argument of type EventArgs containing data related to this event.
private void integerTextBox1_ClipTextChanged(object sender, EventArgs e)
{
Console.WriteLine(" ClipTextChanged event is raised ");
}
Private Sub integerTextBox1_ClipTextChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" ClipTextChanged event is raised ")
End Sub
FormattedTextChanged
This FormattedTextChanged event occurs when the FormattedText property is changed. The FormattedText property returns the formatted text with the formatting.
The event handler receives an argument of type EventArgs containing data related to this event.
private void integerTextBox1_FormattedTextChanged(object sender, EventArgs e)
{
Console.WriteLine(" FormattedTextChanged event is raised ");
}
Private Sub integerTextBox1_FormattedTextChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" FormattedTextChanged event is raised ")
End Sub
IntegerValueChanged
This IntegerValueChanged event occurs when the IntegerValue property is changed. The IntegerValue property specifies the integer value of the text.
The event handler receives an argument of type EventArgs containing data related to this event.
private void integerTextBox1_IntegerValueChanged(object sender, EventArgs e)
{
Console.WriteLine(" IntegerValueChanged event is raised ");
}
Private Sub integerTextBox1_IntegerValueChanged(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine(" IntegerValueChanged event is raised ")
End Sub
SetNull
This event occurs when the NULLState is to be set based on a value.
The event handler receives an argument of type SetNullEventArgs containing data related to this event. The following SetNullEventArgs members provide information specific to this event.
Members | Description |
---|---|
Cancel | Gets / sets a value indicating whether the event should be canceled. |
NullValue | Returns the NULL value. |
private void integerTextBox1_SetNull(object sender, Syncfusion.Windows.Forms.Tools.SetNullEventArgs e)
{
Console.WriteLine(" SetNull event is raised ");
}
Private Sub integerTextBox1_SetNull(ByVal sender As Object, ByVal e AsSyncfusion.Windows.Forms.Tools.SetNullEventArgs)
Console.WriteLine(" SetNull event is raised ")
End Sub
ValidationError
This ValidationError event occurs when the input text is invalid for the current state of the control.
The event handler receives an argument of type ValidationErrorArgs containing data related to this event. The following ValidationErrorArgs members provide information specific to this event.
Members | Description |
---|---|
ErrorMessage | Returns the error message. |
InvalidText | Returns the invalid text as it would have been if the error had not intercepted it. |
StartPosition | Returns the location of the invalid input in the invalid text. |
private void integerTextBox1_ValidationError(object sender, Syncfusion.Windows.Forms.Tools.ValidationErrorArgs e)
{
Console.WriteLine(" ValidationError event is raised ");
}
Private Sub integerTextBox1_ValidationError(ByVal sender As Object, ByVal e AsSyncfusion.Windows.Forms.Tools.ValidationErrorArgs)
Console.WriteLine(" ValidationError event is raised ")
End Sub