高分辨率平台上的Visual Studio Forms Designer [英] Visual Studio Forms Designer on High Resolution Platform

查看:81
本文介绍了高分辨率平台上的Visual Studio Forms Designer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在Windows 10 Surface Pro 4上安装了Visual Studio 2015社区。我为Windows窗体开发了老式的程序;我从2003年开始使用Visual Studio,现在正在使用VS 2010. 在低分辨率平台上的Visual Studio表单设计器
中,我看到的表单与可执行文件中显示的完全相同 - 我可以计数像素。  在高分辨率平台的VS中,表单按比例缩小,控件和放置之间的关系无法预测。  当我从$ 2010导入旧项目时,表单全部使用控件进行压缩,我无法使用它们。  在开发新项目时,我无法控制可执行文件中表单的外观。  所以,我发现
发现Visual Studio无法用于我的开发,我已经在1400x900显示器上回到了VS 2010,Windows 7。  是否有一些设置或选项可使Visual Studio 2015设计器以独立于系统分辨率和
比例因子的WYSIWYG模式工作?


< p style ="">谢谢,




$

解决方案

您好wfaz2,


感谢您的帖子。


您能否分享一下您感觉不到的用户界面截图正确。


我使用VS2010和VS2015在我身边进行了测试。两个VS中的行为都是正确的。


我在VS2010中创建一个Windows表单应用程序,然后在VS2010和VS2015中运行。


在VS2010中:




在VS2015中



此外。请尝试在VS2015中创建一个新的Windows窗体应用程序,然后再试一次。


如果仍然出现问题。我想您的Visual Studio是否有问题。


在这种情况下,尝试运行VS2015并在VS的开发人员命令提示符中打开日志(devenv / log)以检查是否日志文件中存在一些错误


日志将包含在:%APPDATA%\ Microsoft /\\VisualStudio \ Version @\\ActivityLog.xml


或者您可能需要尝试修复Visual Studio或安装VS2015 update1然后再试一次。


顺便说一下。确保VS2015和VS2015安装在同一台机器上。


我想屏幕分辨率是否会影响它。



最诚挚的问候,


Lake Xiao



I have just installed Visual Studio 2015 Community on my Windows 10 Surface Pro 4.  I develop old-fashioned programs for windows forms; I have been using Visual Studio since 2003, and am now using VS 2010.  In the Visual Studio forms designer on low-res platforms  I see the form exactly as it will appear in the executable - I can count pixels.  In VS on a high-res platform the form appears scaled down, and the relationship between controls and placement is unpredictable.  When I import old projects from VS 2010, the forms are all compressed with controls on top of each other, and I cannot work with them.  When developing new projects, I have been unable to control the appearance of the form in the executable.  So, I have found Visual Studio unusable for my development, and I have gone back to VS 2010, Windows 7 on a 1400x900 monitor.  Is there some setting or option to make the Visual Studio 2015 designer work in a WYSIWYG mode independently of the system resolution and scaling factor?

Thanks,

解决方案

Hi wfaz2,

Thanks for your post.

Could you please share us a screenshot of the UI which you feel not correct.

I did a test in my side using VS2010 and VS2015. The behavior in both two VS are correct.

I create a Windows form application in VS2010 and then run in VS2010 and in VS2015.

In VS2010:

In VS2015

In addition. Please try to create a new Windows Form application in VS2015 then try it again.

If still have the problem occurred. I suppose whether there is something wrong with your Visual Studio.

In this case, try to run your VS2015 with logging turned on (devenv /log) in Developer Command Prompt for VS to check if there exist some error in log files

The logs will be in: %APPDATA%\Microsoft\VisualStudio\Version\ActivityLog.xml

Or you may need to try to repair your Visual Studio or install VS2015 update1 then try it again.

By the way. Make sure the VS2015 and your VS2015 installed in same machine.

I suppose whether the screen resolution affect it.

Best Regards,

Lake Xiao


这篇关于高分辨率平台上的Visual Studio Forms Designer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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