I have TextBox
that only accepts decimal numbers.
Butsometimestheuserdoesthefollowing:
HowtomakeintheeventLeave
ofTextBox
itaddthetwozerostotheright,inthecaseoftheimageabove,sothatthenumberisthus15,00?>
Ihavetriedseveralwayswiththefollowingcode:
privatevoidtextBoxPercRedBCICMS_Leave(objectsender,EventArgse){textBoxPercRedBCICMS.Text=String.Format("{0:##,##}", textBoxPercRedBCICMS.Text);
}