I have a Windows Forms application that on it I have a RichTextBox, like this:
At this size it's all ok, but if the user maximaze or resize the window, the RichTextBox stays at the same size, but how to resize the RichTextBox too?
I have a Windows Forms application that on it I have a RichTextBox, like this:
At this size it's all ok, but if the user maximaze or resize the window, the RichTextBox stays at the same size, but how to resize the RichTextBox too?
There are two options, docking and anchoring. In this simple form, an anchor is probably easiest. Just select the control, and adjust the Anchor property to Top, Left, Right, and Bottom.
Also, docking and anchoring will behave differently. Choose the one that works best for you.