如何使对话框窗口分辨率免费 [英] how to make dialog window resolution free

查看:53
本文介绍了如何使对话框窗口分辨率免费的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在开发一个项目c#.net,我需要在该项目中使应用程序对话框的分辨率免费..
我的意思是说,如果我更改Windows操作系统的分辨率,那么它对我的应用程序对话框不会有任何影响.
在此先感谢您

hi to all ,
I am working on a project c# .net where i need to make my application dialog boxes resolution free ..
I mean to say that if i make changes in resolution of the windows operating system then it should not have any effect on the dialog boxes of my application .
Thanks in advance

推荐答案

使用默认值...让您的表单按系统字体大小缩放.通常,这是最佳选择,因为屏幕较小但分辨率较高的人通常会使用大字体(125%甚至150%).

您也可以根据卷轴"的大小进行缩放,尽管它​​可能并不准确,因为监视器报告的DPI通常比实际情况要小一些,以部分补偿屏幕清晰度不如纸张的事实.

同样,信息可能并不总是准确知道的.我认为最近的监视器会报告像素密度,但并非总是如此.
Uses the default... Let your form be scaled with the system font size. This is generally the best option as people that have a small screen but high resolution will typically use large fonts (125% or even 150%).

You can also scale according to "reel" size although it might not be exact as monitor might typically report DPI a bit smaller than reality in part to compensate the fact that screen lisibility is not as good as paper.

Also, the information might not always be known exactly. I would think that recent monitors would report the pixel density but it was not always the case.


核心问题是,您需要在控件上使用停靠和/或锚点属性表格,因此它们会根据表格的大小自行排列. Phillipe是正确的,用户已经设置了所需的字体大小,请不要乱涂.
The core issue is, you need to use the dock and/or anchor properties on control on your form, so they space themselves according to the size of the form. Phillipe is right, the user has set their desired font size, don''t you mess with it.


这篇关于如何使对话框窗口分辨率免费的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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