视觉工作室设计师dpi设置 [英] visual studio designer dpi setting

查看:187
本文介绍了视觉工作室设计师dpi设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学会了如何以困难的方式管理不同的DPI设置,以便在运行时正确显示我的应用程序。

但是仍然存在一个大问题设计时间Visual Studio。
假设我以96 dpi的分辨率创建应用程序,并将我的显示器切换到120 dpi以进行测试。



现在,如果我打开120 dpi的表单设计师,表单按125%调整大小,控件移动了! : - (((<$ p

所以我尽量避免重新打开表格,但这不是一个好的解决方案,不是吗?)

是否有任何机会设计时间设置来阻止表单调整大小?

解决方案

解决方法:不要在计算机上测试,但在虚拟机或其他计算机上进行测试,并且不要在具有大字体的计算机上打开解决方案。



我们发现我们无法使用AutoScaleMode = Dpi.Font设置,当我们在设计器中打开它们时,它将随机调整表单的大小.Dpi或None似乎无效。


I've learn how to manage different DPI settings the hard way, so that at runtime my applications are properly displayed.

But there is still a big issue with Design time Visual Studio. Say I build an application at 96 dpi and I switch my display to 120 dpi for testing purposes.

Now IF I open a form designer at 120 dpi, the form is resized according to 125%, the controls moved aso! :-(((

So I try to avoid reopening forms, but that's NOT a nice solution, isn't it?

Is there by any chance a design time setting to prevent form to resize?

解决方案

Not a solution but possibly a workaround: do not test on your computer but on a VM or other computer and do not open the solution on a computer with big fonts.

And we found that we cannot use the AutoScaleMode = Dpi.Font setting. That will randomly resize forms when we open them in the designer. Dpi or None seem to work.

这篇关于视觉工作室设计师dpi设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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