when a textbox contains only digits I am using padleft method,here my textbox contains alphanumeric text,for this I need to do padding with zero's.
textBox1.Text = textBox1.Text.PadLeft(5, '0'); This line works when textbox contains digits like 1.output is 00001. Now if my text in textbox is A1.output should be A00001. if AB1 Output should be AB00001. the number of digits should be 5