如何更改桌面屏幕分辨率 [英] how to change desktop screen resolution

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

问题描述

我想改变屏幕分辨率用C#code。在桌面应用程序。

I want to change screen resolution with c# code in desktop application.

推荐答案

这是一个类似的问题:我想改变时钟或我要更改用户密码或者我想改变的Windows主题。一个应用程序没有业务作出这样的系统配置的变化,因此它不是由.NET框架包裹

This is a similar question to "I want to change the clock" or "I want to change the user password" or "I want to change the Windows theme". An application program has no business making such system configuration changes, accordingly it isn't wrapped by the .NET framework.

您可以做到这一点,但它需要的P / Invoke。使用 ChangeDisplaySettingsEx()。不完全是简单易用,也非常安全的使用。许多LCD面板仅看在一个特定的分辨率,即用户所选择的1好。采摘的分辨率显示器不能支持产生黑屏和三指敬礼。烟中的美好时光。

You can do it, but it will require P/Invoke. Use ChangeDisplaySettingsEx(). Not exactly easy to use, nor very safe to use. Lots of LCD panels only look good in one particular resolution, the one that the user selected. Picking a resolution that the monitor cannot support produces a black screen and the three-finger salute. Smoke in the good old days.

这篇关于如何更改桌面屏幕分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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