Click here to Skip to main content
14,267,085 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to create a program that allows the user to set the resolution of their screen. But I can not find someone who can help me in this challenge. Please help me guys!

What I have tried:

I know how to execute in C # prompt commands, so I also looked for some commands that would allow me to change the screen resolution, but I still have not found it. Please help me.
Updated 27-Jul-18 0:55am
Rate this:
Please Sign up or sign in to vote.

Solution 2

You have to call a Windows API function: ChangeDisplaySettingsA function | Microsoft Docs[^]

This requires using invoke or writing a wrapper. But such has been done already:
Changing Display Settings Programmatically[^]
Dynamic Screen Resolution[^]
Change Resolution Before Starting Application[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100