Hi Anderson,
Thanks for contacting Syncfusion support.
We have checked your reported issue “Positive value color is not changed while replacing from the zero value to positive value” and reproducing our side. You can avoid this issue by using SfNumericTextBox control. Since We have marked IntegerTextBox control as a classic. We have provided rich set of features over IntegerTextBox control. So, can you please use SfNumericTextBox control to achieve your requirement. Please refer the below code snippet and sample for the same.
Code snippet:
SfNumericTextBox sfNumericTextBox1 = new SfNumericTextBox();
sfNumericTextBox1.Location = new Point(300, 200);
sfNumericTextBox1.Height = 30;
sfNumericTextBox1.Width = 100;
sfNumericTextBox1.Value = 0;
sfNumericTextBox1.Style.ZeroForeColor = Color.Purple; |
NOTE: The positive color changed while change value from zero to the positive value after losing the focus in SfNumericTextBox control.
Please let us know if you have any concerns use SfNumericTextBox control. It will be helpful for us to provide the solution at the earliest.
Regards,
Backia Raj Kanagaraj