How to auto resize and adjust Form controls with change in resolution

Afnan Bashir picture Afnan Bashir · Nov 22, 2010 · Viewed 207.8k times · Source

I have noticed that some applications change their controls position to adjust them as much as possible in the resolution as possible, If window is maximized they set themselves in such a way that over all GUI looks balanced. My question is that is it possible to make or implement this functionality in Visual studio 2010 C#?

Answer

SwDevMan81 picture SwDevMan81 · Nov 22, 2010

Use Dock and Anchor properties. Here is a good article. Note that these will handle changes when maximizing/minimizing. That is a little different that if the screen resolution changes, but it will be along the same idea.