Category / Section
How to include leading zeros in IntegerTextBox?
1 min read
In IntergerTextBox, zero can be added as initial character by using its property named AllowLeadingZeros.
The Following Sample demonstrates the same.
C#
//To Allow Zero at the beginning of the IntegerTextBox. this.integerTextBox1.AllowLeadingZeros = true;
VB
'To Allow Zero at the beginning of the IntegerTextBox. Me.integerTextBox1.AllowLeadingZeros = True
Figure 1. To display zero as initial character.
Sample Links:
C#: Accept Zero at Beginning C#
VB: Accept Zero at Beginning VB