Winform控件根据分辨率调整大小 [英] Winform controls resize as per resolution

查看:507
本文介绍了Winform控件根据分辨率调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想了解Windows窗体及其根据系统分辨率或工作区调整控件的大小.因此,请向我提供任何有关此查询的信息.感谢您.


I would like to know about windows form and its control resize as per system resolution or workarea. so kindly help me anyone for this query.Thanks in advance.

推荐答案

查看表单上控件的Anchor和Dock属性.使用这些属性,几乎可以使任何UI合理地调整大小.了解这些属性以及如何正确使用它们的最佳方法是使用它们.
Look into the Anchor and Dock properties for the controls on your forms. Using these properties, pretty much any UI can be made to resize reasonably. The best way to learn about these properties and how to use them properly is to play with them.


请参阅我过去的建议以得到耐分辨率的设计:
屏幕分辨率改变时,Zom Out发生故障 [ ^ ].

查看相关的过去答案:
GUI外观-C#.Net [
Please see my past advices to get a resolution-tolerant design:
Zom Out malfunctions when Screen resolution changes[^].

See related past answer:
GUI Apperance - C#.Net[^].

—SA


这篇关于Winform控件根据分辨率调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆