简体   繁体   English

我的Windows窗体在Visual Studio社区设计器中被“缩小”。 最初在VS Express 2010中创建的项目

[英]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: 您可以尝试将AutoSizeAutoScale属性设置为以下内容:

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.

相关问题 活动设计器中未启用 ReportViewer 控件。 - 视觉工作室 2017 - ReportViewer control are not enabled in the active designer. - Visual Studio 2017 自定义Visual Studio 2010的项目设计器 - Customizing Project Designer for Visual Studio 2010 Visual Studio 2010表单设计器-GroupBox - Visual Studio 2010 form designer - groupbox Visual Studio 2017:Windows 窗体设计器未出现 - Visual Studio 2017 : Windows Form designer not appear 在Visual Studio 2010 Express中部署Windows应用程序 - Deploying windows application in Visual studio 2010 Express Visual Studio Community 2019 创建项目但无法打开它创建的项目? - Visual Studio Community 2019 creates a project but cannot open the project it created? Visual Studio中的表单设计器会覆盖我的代码 - Form designer in visual studio overrides my code 我的Microsoft Visual Studio Community 2015在“新项目”列表中没有Windows服务 - My Microsoft Visual Studio Community 2015 doesn't have Windows Service in New Project list 在没有视觉工作室设计师的情况下绘制形状。 形状未显示且事件未触发 - Drawing shapes without visual studio designer. Shapes not showing and events not firing 使用Visual Studio 2010继承Windows窗体类 - Inheriting Windows Form Classes with Visual Studio 2010
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM