How do you control what monitor your application opens on?

后端 未结 5 1007
深忆病人
深忆病人 2021-02-02 10:20

As a two-monitor user at work, I\'ve noticed that applications behave differently with regards to what monitor they open on (primary or secondary monitor, the last monitor the a

5条回答
  •  心在旅途
    2021-02-02 11:14

    One thing to consider is that the monitor configuration might have changed inbetween invocations of the application (e.g., running on a laptop that at times might be docked and uses an external monitor). Make sure that your application is placed in the visible range.

    As for APIs, there is the System.Windows.Forms.Screen class that gives you some of that information.

提交回复
热议问题