简体   繁体   中英

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. I recently upgraded to VS 2016 Community. Now, when I open that project, the Windows form in that project appears "shrunk" in the Designer. If I build & run, however, the form looks fine.

这是设计师的样子

...这是运行时的样子

I've tried playing with the DPI settings & screen resolution on my laptop; 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:

Form.AutoSize = false;
Form.AutoScaleMode = AutoScaleMode.Font;

This could also be helpful: AutoScaleMode problems with changed default font

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM