Use Windows API from C# to set primary monitor

前端 未结 4 1790
予麋鹿
予麋鹿 2020-12-15 12:18

I\'m trying to use the Windows API to set the primary monitor. It doesn\'t seem to work - my screen just flicks and nothing happens.

    public const int DM_         


        
4条回答
  •  情歌与酒
    2020-12-15 12:34

    I can't really help you with the winapi-stuff but if you are using a Nvidia card you may have a look at the NVcontrolPanel Api Documentation Then you could make the secondary output your primary using rundll32.exe NvCpl.dll,dtcfg primary 2 Hope that will help you.

提交回复
热议问题