Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have some users here who have dual monitors including myself and I have noticed that I have wasted productivity at times as I need to move windows to the screen I want them displayed on. Some of the applications such as mstsc or outlook. I would like to have show up on the same monitor every time.

Is there a way to start a process from a .net application that allows you to set which screen or even the location on the screen that it shows up?

Ive tried searching for anything on this without any luck and am hoping I just don't have the right term to bring up the answer I need.
Posted

1 solution

http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx[^] is the docs for CreateProcess.

http://www.pinvoke.net/default.aspx/kernel32/CreateProcess.html[^] is the p/invoke signature.

The struct you pass in lets you specify a window position.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900