Articles in this section

How to include leading zeros in IntegerTextBox?

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

                             

 

                                                  C:\Users\keerthana.jegannatha\Pictures\Camera Roll\Integer.png

Figure 1. To display zero as initial character. 

Sample Links:

 

C#: Accept Zero at Beginning C#

VB: Accept Zero at Beginning VB

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied