title: Align numbers in RichTextBox
body: <p>I want to print a multiplication table in C# but it's not aligned!
  When we type a number "n" in textbox means: n*n table.
  What can I do?</p>
  
  <pre><code>for (int i = 1; i &lt;= Convert.ToInt32(textBox1.Text); i++)
  {
      for (int j = 1; j &lt;= Convert.ToInt32(textBox1.Text); j++)
      {
          richTextBox1.Text += Convert.ToString(i * j) + " ";
      }
      richTextBox1.Text += "\n";
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/CqVSq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CqVSq.png" alt="enter image description here"></a></p>