How to make a dialog(view) open up on the same monitor as the main window

前端 未结 2 1205
野趣味
野趣味 2021-01-19 00:31

In a PC with multiple monitors, say you run your application which have have a second Window/Dialog other than the main window (such as Options) that you want it to open in

2条回答
  •  囚心锁ツ
    2021-01-19 00:58

    I'd like to add to this the fact that if you start the second dialog maximized, it will default to the main screen. As a workaround, I set the maximize flag in the OnLoad method.

提交回复
热议问题