Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting C# console application location to a secondary screen

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.

like image 944
Vitalij Avatar asked Jan 18 '12 13:01

Vitalij


2 Answers

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

like image 164
leppie Avatar answered Nov 15 '22 12:11

leppie


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.

like image 25
ChrisBD Avatar answered Nov 15 '22 13:11

ChrisBD