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

cresizescreen-resolutionuser interfacewinforms

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#?

Best Answer

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.

Related Topic