title: C# - Stretching a textbox to fit the containing window
body: <p>I want the text box to stay a certain distance from the top, bottom, left, and right edges of the parent form, and to stretch as the window does.</p>
  
  <p>Currently I have:</p>
  
  <pre><code>private void Form1_SizeChanged(object sender, EventArgs e)
  {
      richTextBox1.Size = new System.Drawing.Size(this.ClientSize.Width - 24, richTextBox1.Size.Height);
  }
  </code></pre>
  
  <p>...for the width, but I'm wondering if that's the right way or not. Is there a better way?</p>