vb.net - VB 2010 - How to Format a number -


i have masked textbox in program asks user write number in mask "00". user writes 1 number "4". how can format textbox show "04" instead ?

padleft you.

textbox1.text = textbox1.text.padleft(2, "0") 

Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -