Resize Controls When Form Resize

c#, winforms

Solution

there are two ways to make a control automatically resize based on size changes of the :

- Set the Dock property of the control to DockStyle.Fill.

- Set the Anchor property to "Top, Bottom, Left, Right"

But if you decide to use WPF GridLayout,it has a lot Capability for this target.

Edited

See this short tutorial Resizing controls with form: Anchor property Tutorial

Problem

I just wondering about my windows Application. When i re-size windows form that time my Form controls should re-size. Can any body tell me how to do this I have Used Anchor property for that but no luck. This is a win form.

Original source