[英]My Windows Form is “shrunk” in Visual Studio Community Designer. Project originally created in VS Express 2010
I have a C# project which was originally created in VS Express v2010. 我有一个最初在VS Express v2010中创建的C#项目。 I recently upgraded to VS 2016 Community.
我最近升级到VS 2016社区。 Now, when I open that project, the Windows form in that project appears "shrunk" in the Designer.
现在,当我打开该项目时,该项目中的Windows窗体在设计器中显示为“缩小”。 If I build & run, however, the form looks fine.
但是,如果我构建并运行,该表格看起来很好。
I've tried playing with the DPI settings & screen resolution on my laptop; 我曾尝试在笔记本电脑上使用DPI设置和屏幕分辨率。 neither of these made a difference.
这些都没有改变。
Obviously, trying to position objects on the form using the designer is virtually impossible since it is so compressed. 显然,尝试使用设计器在表单上定位对象实际上是不可能的,因为它是如此压缩。 Any advise would be greatly appreciated!
任何建议将不胜感激!
You could try to set AutoSize
and AutoScale
properties to the following: 您可以尝试将
AutoSize
和AutoScale
属性设置为以下内容:
Form.AutoSize = false;
Form.AutoScaleMode = AutoScaleMode.Font;
This could also be helpful: AutoScaleMode problems with changed default font 这也可能会有所帮助: 更改默认字体的AutoScaleMode问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.