VB6 statement to C#
in VB6
textbox1.text = format(textbox1.text,"0000000000")
does any one know, how to do that in C# ?
TQ
[129 byte] By [
MGunawan] at [2007-11-11 7:32:56]

# 1 Re: VB6 statement to C#
textbox1.text = string.Format("0000000000",textbox1.text);
# 2 Re: VB6 statement to C#
Undead: Did you test that code? It prints "0000000000".
Gunawan: Try this:
textBox1.Text = string.Format("{0:D10}", int.Parse(textBox1.Text))