title: C# how to format a value taken from text box?
body: <p>this may be simple but im still new to this language.</p>
  
  <p>I'm creating a windows application where is a text box and a a button. What it will do is take the value entered in the text box and create a .txt file with the value entered in the textbox as its content.</p>
  
  <p>I've don this. I have successfully add "5" to the textbox and pressed the button and it will create a txt file with content "5" in it.</p>
  
  <p>My question is, how do I format the value form the text box to something like this xxxxxxx.xxxxx?</p>
  
  <p>So if I enter <code>5</code> how do I make it create in text to become <code>0000005.00000</code>?</p>
  
  <p>Or if I enter <code>5.4</code> how do i make it become like this <code>0000005.40000</code>?</p>
  
  <p>Can anyone shed a light? Or coding sample?</p>