2
I have a TextBox
which only accepts decimal numbers.
But sometimes the user does the following:
How to do for the event Leave
of TextBox
it add the two zeroes to the right, in the case of the image above, so that the number looks like this 15,00?
I’ve tried several ways with the following code:
private void textBoxPercRedBCICMS_Leave(object sender, EventArgs e)
{
textBoxPercRedBCICMS.Text = String.Format("{0:##,##}", textBoxPercRedBCICMS.Text);
}
Thank you so much for your attention, I’ll test it here. Thanks....
– Robss70
@Robss70 Arrange. The way you did it is much more appropriate for your case.
– stderr