how to read screen resolution - and change this resolution?
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.
精彩评论