移动到另一台新计算机时,C#表单的C#布局显示错误 [英] C# layout of C# form show wrongly when move to another new computer

查看:68
本文介绍了移动到另一台新计算机时,C#表单的C#布局显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨亲爱的所有



我设计了很多C#FORM,它继承自旧计算机上VS2012的多语言(localizable = true)的自定义DatWindowBase,我安装了visual studio professional 2012并安装了更新4(它改为终极版)到一台新电脑(我还在gac上注册了我的DLL新电脑),新电脑分辨率是3840 * 2160(4K),现在我搬了所有C#从旧计算机到新计算机的项目,当我在设计模型中打开FORM时,所有表单的布局(设置为localizable = true)显示异常,Form上的所有控件缩小,每个控件缩小的大小和控件的位置重叠在Form中,但是我打开所有表格设置为localizable为false,它在新电脑上正常显示就像在旧电脑上一样,它让我困惑,请如何解决这个问题,急,需要你的帮助,提前感谢你。

BTW,两个电脑操作系统是windows10。



我尝试过:



我试过研究资料来自Microsoft的lution,但未能找到它,不确定这是否与显示器分辨率4K相关。

Hi Dear All

I design a lot of C# FORM which inherit from custom "DatWindowBase" with multiple language(localizable=true) by VS2012 on old computer, I installed visual studio professional 2012 and install update 4(it changed to ultimate version) to a new computer(I also register my DLL in gac on new computer), new computers resolution are 3840*2160(4K), now I moved all C# projects to new computer from old computer, when I open FORM in design model, layout of all forms(with set localizable=true) show abnormal, all controls on Form shrink, size of each control shrink and position of control overlap in Form, but I open all Forms with set localizable to false, it show normally on new computer just as on old computer, it confuse me, please how to resolve this issue, urgent, need your kindly help, appreciate you in advance.
BTW, two computer OS are windows10.

What I have tried:

I have tried research resolution from Microsoft, but failed to find it, not sure if this is related with monitor resolution 4K.

推荐答案

检查:http://stackoverflow.com/questions/1158130/visual-studio-2005-designer -moves-controls-and-resizes-form / 1159310#1159310 [ ^ ]



Check this: http://stackoverflow.com/questions/1158130/visual-studio-2005-designer-moves-controls-and-resizes-form/1159310#1159310[^]

引用:



我找到了解决办法。



不确定背后会发生什么我改变了显示属性。它工作正常。这是序列: display propertis-> settings tab-> advance 。在高级对话框中,我将 DPI设置大(120dpi)更改为正常(96 dpi)


I found a work around.

not sure what happens behind but i changed my display properties. and it works fine. here is the sequence: display propertis->settings tab->advance. in the the advance dialog i changed the "DPI Settings" from Large (120dpi) to Normal (96 dpi)


这篇关于移动到另一台新计算机时,C#表单的C#布局显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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