设置我的显示分辨率 [英] Setting my Display Resolution

查看:91
本文介绍了设置我的显示分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C#开发人员,我必须经常改变我的显示分辨率。

I'm a C# developer and I have to change my display resolution regularly.

有很多关于如何看当前的显示分辨率的例子: <一href="http://msdn.microsoft.com/en-us/library/system.windows.forms.systeminformation.primarymonitorsize.aspx"相对=nofollow> SystemInformation.PrimaryMonitorSize

There are plenty of examples on how to read the current display resolutions: SystemInformation.PrimaryMonitorSize

我发现 ChangeDisplaySettingsEx功能

时要做到这一点在C#中的唯一方法是使用 PInvoke的 ???

Is the only way to do this in C# is with PInvoke???

这似乎很奇怪,我认为这是很容易得到这些信息出来,但很难将其设置...

It seems odd to me that it is very easy to get this information out, but difficult to set it...

推荐答案

您将不得不作出的PInvoke调用ChangedisplaySetting。

You'll have to make a PInvoke call to ChangedisplaySetting.

下面是有一些示例code, HTTP链接:// WWW。 xtremedotnettalk.com/printthread.php?t=73184

Here's a link that has some sample code, http://www.xtremedotnettalk.com/printthread.php?t=73184.

这篇关于设置我的显示分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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