开发者

how to read screen resolution - and change this resolution?

开发者 https://www.devze.com 2022-12-25 06:46 出处:网络
how to read screen resolution - and change this resolution ? ex: i read 800X60开发者_如何学C0 and i want to change to 1024X768

how to read screen resolution - and change this resolution ?

ex: i read 800X60开发者_如何学C0 and i want to change to 1024X768

in WinForm - C#


First of all: Which screen? You know that there can be multiple ones.

From Windows Forms you can use the Screen class to retrieve the dimensions of a specific screen. You can use the ChangeDisplaySettingsEx API function to change the resolution of a display. I don't think there is a purely managed way to do it.

0

精彩评论

暂无评论...
验证码 换一张
取 消