C# form auto resize window

John Ryann picture John Ryann · Nov 3, 2011 · Viewed 12.7k times · Source

I have a form app. inside I have a richTextBox. How to make make the app to auto resize the rich textBOx? meaning if I expand or max the window, rich textBox should follow

Answer

MPelletier picture MPelletier · Nov 3, 2011

Use your TextBox's Anchor property. You'll probably want to set it to all sides, Top, Bottom, Left, Right.