Can I set on which monitor will application run through the Visual Studio appear?

廉价感情. 提交于 2019-12-05 02:16:11

Unfortunately not. The application is positioned by the OS and is not an option that you can set from Visual Studio.

Solution: It is simple to save the position of the application window on exit and restore it again on start-up (a MSDN blog post). Wrap it all in #if DEBUG ... #endif pre-processor so that it only occurs during development.

HTH,
Dennis

I had the same problem and eventually thought of the now-obvious solution -- make the left monitor the primary.... ;-)

I had this problem, when connected to my work place with 2 monitors through RDP from a laptop. Visual Studio opened my app in the second monitor and I could not reach it. Win + Arrows helped me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!