string.Format
If you wish to perform the conversion from a numeric data type to a padded string with one operation:
Code:
string str = string.Format("{0:d6}", number);
Good luck 
|
__________________
Never trouble another for what you can do for yourself.
|