title: PadLeft and PadRight using variables given in by user
body: <p>I have a small problem using <code>PadLeft</code> and <code>PadRight</code>.
  So I have in my code that the user can input the character they want to use for padding and how many characters they wanna put in. Like this:</p>
  
  <pre><code>String StartString;
  int AmountOfCharacters;
  Char PadCharacter;
  
  StartString = TextBoxString.Text(Lawnmower)
  AmountOfCharacters = Convert.ToInt32(TextBoxAmountofCharacters.Text)    (Lets   Say 5)
  PadCharacter = Convert.ToChar(TextBoxPadCharacter.Text)(Lets use *)
  </code></pre>
  
  <p>So then later i have put.</p>
  
  <pre><code>Padding = String.PadLeft(AmountOfCharacters,PadCharacter)
  </code></pre>
  
  <p>Now the problem I have when I run the code as I have it above it doesn't do anything.
  It just gives me as text lawnmower without any **** attatched.
  Do I have to change something in my code to make it work or am I using the wrong variables for this?
  Because when I use the <code>PadCharacter</code> as a <code>String</code> to I get a error message </p>
  
  <blockquote>
    <p>Cannot implicitly convert String to char.</p>
  </blockquote>