When we want to change the display setting, we can use the display setting UI.

But besides UI, can I directly change the setting in the registry so that I can programmatically do it?

For instance, I want to switch between "Duplicate these displays" and "Show desktop only on 1" via code.

How could I do so?

link|improve this question

0% accept rate
It is possible to create a batch file that will read a key in the registry, and if its 1, make it 0, else it will make it 1. I don't know that there is a registry key for this though. – soandos Dec 14 '11 at 6:38
Not sure about registry, but this code project article shows how to change display settings programmatically. – Alexander Galkin Dec 14 '11 at 7:55
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.