如何在Visual Studio C#中更改分辨率设置 [英] how to change resolution setting in visual studio C#

查看:469
本文介绍了如何在Visual Studio C#中更改分辨率设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们.
当我在另一台PC上运行我的应用程序时,由于我的LCD尺寸和分辨率与其他PC不相同,因此无法正常工作.
请帮助我如何使表单与不同的屏幕尺寸和分辨率兼容?

HI GUYS.
when i run my application in another pc,it not work properly because my LCD size and resolution is not equal to other pc.
please help me how can i make forms compatible with different screen size and resolution??

推荐答案

使用工作区属性,可以将屏幕尺寸设置为Form
By using Working Area Property one can set the screen size to the Form
System.Drawing.Rectangle workingRectangle =        Screen.PrimaryScreen.WorkingArea;


这篇关于如何在Visual Studio C#中更改分辨率设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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