简体   繁体   中英

Adjust Control's Size/Position With Screen Resolution

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

Basically, you can place your controls in a TableLayoutPanel then

  • set its docking property to Left, Top, Right, Bottom
  • set all controls docking properties to Left, Top, Right, Bottom or less if more appropriate
  • set the columns and rows size of your TableLayoutPanel as "percent" or "fixed" at your convenience.

Take a look at that walkthrough . It's not easy to implement at the first time, but go through the whole tutorial and you'll get a good idea on how to do it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM