set desktop to extend/clone in dual display in windows
How can I programmaticly change windows display setting from 开发者_开发问答Extend desktop to Clone desktop and the other way around ?
If you are using Windows7 you can use DisplaySwitch.exe
file with parameters /extend
and /clone
This issue isn't going to be a simple "call this method in this .NET class" I don't believe. However, it can be done using the EnumDisplaySettingsEx()
API. Here is a SO question similar to yours that has the information you need to dig into this issue:
How do I enable a second monitor in C#?
精彩评论