如何设置表单大小相关屏幕分辨率? [英] How Can I Set Form Size Relate Screen Resolution ?

查看:103
本文介绍了如何设置表单大小相关屏幕分辨率?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dears

我如何设置表格大小相关的屏幕分辨率???





谢谢和问候

Nisar Babu.P

推荐答案

基本上,除非你的设计在布局上与Visual studio类似:一个被工具区包围的中央工作区,当表格大小发生变化时不会发生显着变化,你永远不会得到一个好看的结果。虽然您可以使用Anchor和Dock属性来获得良好的自动化程度和调整大小,但它不会影响完整控件,特别是文本大小不会自动受到影响。这导致按钮对于文本来说太小,或者中间有小文本的巨大按钮。



如果你的设计不适合VS风格,那么设计对于一个表单大小,并保留它,或者使用WPF - 它在这些事情上相当不错。
Basically, unless your design is similar in layout to Visual studio : a central work area surrounded by "tool areas" the do not change significantly when the size of the form changes, you will never get a good looking result. While you can use the Anchor and Dock properties to get a good degree of automation and resizing, it does not affect the complete control, and text sizes in particular are not automatically affected. This leads to buttons that are too small for their text, or huge buttons with tiny text in the middle.

If your design does not suit the VS style, then design it for one form size, and leave it at that, or use WPF instead - it is pretty good at such things.


这篇关于如何设置表单大小相关屏幕分辨率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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