Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
1.00/5 (1 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.
Posted
Updated 27-Jul-18 0:55am

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[^]
 
Share this answer
 
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900