C# – Resizable windows controls

cwinforms

I am intersted whather I can make controls like treeview, RTF or tabcontrols resizable (I guess I can) and how. I know about using splitters but those only enable to make two areas to "overlap".
Thank you!

Best Answer

The easiest way is to anchor the controls to the container they are in. Then, when the container is resized, the controls will be resized as well. Check out the Anchor property of the controls. You can set the control to anchor to the left, right, top, bottom of the container or any combination of those.