Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.