Gold
Gold

Reputation: 62554

how to read screen resolution - and change this resolution?

how to read screen resolution - and change this resolution ?

ex: i read 800X600 and i want to change to 1024X768

in WinForm - C#

Upvotes: 2

Views: 1079

Answers (1)

Joey
Joey

Reputation: 354854

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.

Upvotes: 2

Related Questions