如何在VB 2010中以编程方式更改屏幕分辨率? [英] How to change screen resolution programmatically in VB 2010 ?

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

问题描述

大家好,



我一直在寻找这个日子,我仍然不知道如何去做。互联网搜索结果可能是其他语言的点点滴滴。这是一项常见的任务,不是吗?所以它应该是微不足道的!



任何人都可以发布在vb 2010下工作的示例的源代码吗?

请帮忙!



我尝试过:



很多东西!

例如。



Dim changer As ScreenResolution = new ScreenResolution()

Dim success As Boolean = changer。 ChangeResolution(800,600,24)



ScreenResolution未正确定义。

Hi everyone,

I've been searching for days for this and I still don't know how to go about it. Internet search results to bits and pieces possibly in other languages.. That is a common task, no? So it should be trivial!

Can anyone post source code of an example working under vb 2010 ?
Please help !

What I have tried:

Many things!
eg.

Dim changer As ScreenResolution = new ScreenResolution()
Dim success As Boolean = changer.ChangeResolution(800,600,24)

"ScreenResolution" is not defined properly.

推荐答案

ScreenResolution类vb.net - Google搜索 [ ^ ]


更好的问题是为什么会你想要吗?



在我的机器上执行此操作,我将卸载您的应用程序,然后您甚至可以开始询问原因。


更改屏幕分辨率取决于用户,而不是您的应用程序。如果您更改分辨率,还会更改用户桌面上每个图标的布局,强制他们将所有图标放回到他们想要的位置,并在此过程中惹恼用户。



你的问题的答案很简单。您永远不会从应用程序更改系统范围的设置。
The better question is why would you want to?

Do that on my machine and I'll uninstall your app before you can even begin to ask why.

Changing screen resolution is up to the user, not your app. If you change the resolution, you also change the layout of every icon on the users desktop, forcing them to put all their icons back to exactly where they want them, and pissing users off in the process.

The answer to your question is simple. You don't ever change system-wide settings from your application.


您知道m.a.m.e. ?多个街机机器模拟器。它有很多视频游戏。我想制作类似的东西,所以我需要更改为自定义分辨率,颜色映射和频率并捕获鼠标。
Do you know m.a.m.e. ? Multiple arcade machine emulator. It has a big bunch of video games. I want to make something like that, and so I need to change to a custom resolution, color mapping and frequency and capture the mouse.


这篇关于如何在VB 2010中以编程方式更改屏幕分辨率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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