登录
首页 » 其他 » C# 设置屏幕分辨率

C# 设置屏幕分辨率

于 2023-03-16 发布 文件大小:14.35 kB
0 146
下载积分: 2 下载次数: 1

代码说明:

C# 改变屏幕分辨率,功能仿windows 的屏幕分辨率设置,改变滑块改变分辨率大校本例可学习一下滑块的用法。源代码如下:   long RetVal = 0;   DEVMODE dm = new DEVMODE();   dm.dmSize = (short)Marshal.SizeOf(typeof(DEVMODE));   dm.dmPelsWidth = dWidth;//宽   dm.dmPelsHeight = dHeight;//高   dm.dmDisplayFrequency = 85;//刷新率   dm.dmFields = DEVMODE.DM_PELSWIDTH | DEVMODE.DM_PELSHEIGHT | DEVMODE.DM_DISPLAYFREQUENCY | DEVMODE.DM_BITSPERPEL;   RetVal = ChangeDisplaySettings(ref dm, 0);

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 只想下载 只想下载 只想下载 只想下载
    只想下载 只想下载 只想下载 只想下载 -Just want to download just want to download just want to download just want to download just want to download just want to download just want to download just want to download
    2022-06-12 21:05:30下载
    积分:1
  • 在状态栏显示进度条的C#实现实例
    C#在状态栏显示进度条,就像Windows的窗口一样,当操作到某些功能时,会在窗口最下边的状态栏中显示处理进度,让使用者清淅的知道软件的加载状况。
    2022-08-20 08:56:48下载
    积分:1
  • nsga-ⅱ 的二进制
    支配排序遗传算法II(NSGA-II)为二进制方法
    2022-06-26 18:06:01下载
    积分:1
  • 班机成员管理软件
    班机成员管理软件-flight management software
    2022-01-25 15:55:20下载
    积分:1
  • 回溯算法中的圆排列问题
    回溯算法中的圆排列问题-backtracking algorithm with a round of the problem
    2022-07-19 12:24:57下载
    积分:1
  • C#对图片进行串行化处理
    C#对图片进行串行化处理,输出文件流对象,串行化图片对象,串行化对象输出,串行化对象输入,可学习如何用C#选择要存储的图形文件,程序支持的图片格式:图形文件(*.bmp;*.jpg;*.jpeg;*.gif)等。
    2022-07-08 07:32:20下载
    积分:1
  • 总个数确定后,每张盘curDisk的移动方向maybe_To是确定的且唯一的:如共有三个盘时,盘1始终向左移动。 这里,将柱子由左向右看成A(源柱子Source...
    总个数确定后,每张盘curDisk的移动方向maybe_To是确定的且唯一的:如共有三个盘时,盘1始终向左移动。 这里,将柱子由左向右看成A(源柱子Source),B(借助的柱子Borrow),C(目标柱子Target). A的左看成C,B的左看成A,C的左看成B; A的有看成B,B的右看成C,C的右看成A; 每张盘的移动方法(因为不可能连续两次移动相同的盘!): 一个盘curDisk现在在 柱子curStick上,那么curDisk另一个柱子(3个中除了2个的另1个) 只要有选择的选择一个柱子curStick,分析、判断其最上面的盘curDisk的能否向curDisk确定的唯一的方向移动;移动 完后 再 选择 另一个 柱子 分析 判断 就可以完成了 (这个算法特别适合于人玩这个“弱智”(我有同学这么说)游戏,我玩我的文曲星pc1000a上的Hanoi 9层游戏,需要5分钟就可以移动完毕)-total number identified, each set curDisk maybe_To direction of the movement of which is determined only : If there are three disk, was always left a mobile. Here, the columns from left to right as A (source pole Source), B (using the pole Borrow), C (target pole Target). A left as C, B to the left as A, C on the left as B; A as the B, B on the right side as C, the right as A; each set of mobile methods (as it is impossible for the same two mobile disk!) : a set curDisk curStick now on the pole, then curDisk another pole (three in addition to two other one), when given a choice, choose a pole
    2022-09-17 11:25:03下载
    积分:1
  • mp3原理图,可以了解mp3的构造原理极电路器件的各个参数之间的关系...
    mp3原理图,可以了解mp3的构造原理极其电路器件的各个参数之间的关系-mp3 schematic diagram, you can understand the fundamentals of the structure is extremely mp3 circuit devices the relationship between the various parameters of
    2022-03-21 04:43:12下载
    积分:1
  • 八数码问题的源代码
    八数码问题的源代码-eight digital source of the problem
    2022-08-22 23:24:58下载
    积分:1
  • 在windows下运行RTI,除了相关的设置之外你还必须有本文件
    在windows下运行RTI,除了相关的设置之外你还必须有本文件-In the windows running under RTI, apart from the relevant settings in addition you must have this document
    2023-03-24 20:25:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载