为什么Visual Studio在运行时会降低表单的分辨率? [英] Why does visual studio decrease the resolution of the forms when it is run?

查看:118
本文介绍了为什么Visual Studio在运行时会降低表单的分辨率?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Visual Studio上进行课程学习,当我创建表单时,分辨率与我的笔记本电脑(3840x2160)相同,但是当我运行该程序时,表单的像素变得更加像素化,是否有任何原因呢? ?有什么我可以解决的办法吗? 这与我的高分辨率有关吗?

I'm doing coursework on visual studio and when i create a form the resolution is the same as my laptops (3840x2160) but when i run the program the forms become notably more pixelated, is there any reason for this? is there something i can do to fix it or is it just to do with my large resolution?

推荐答案

检查表单的 AutoScaleMode 属性如何影响行为.使用None,Font和Dpi值制作几个可执行文件,然后在不同的机器上尝试.

Check how the AutoScaleMode property of the form affects the behaviour. Make several executables using None, Font and Dpi values, and try them on different machines.


这篇关于为什么Visual Studio在运行时会降低表单的分辨率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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