Setting C# console application location to a secondary screen

倖福魔咒の 提交于 2019-12-23 08:36:20

问题


Overview: I am working on a project which involves a WCF and multiple types of clients. I have created several Test clients and I have a WCF which is hosted in a console app. This results in me having multiple application windows (I currently have 4) when debugging and every time I run them I have to arrange them on multiple screens (I have 2).

Question: I wonder is there a way to set a position of Console application to the secondary screen without a need to drag it all the time.


回答1:


Move the console to the wanted screen. Go to properties. Note the location. Use that.




回答2:


I think that you'll find that the answer given on this thread will cover you.

It'll mean saving the position of the console window when it closes and also checking that the position is within the displayable area of the desktop on startup, but it demonstrates how to position the console window for both console applications and windows forms ones.



来源:https://stackoverflow.com/questions/8911228/setting-c-sharp-console-application-location-to-a-secondary-screen

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