Indicate on which screen my application should open

I created two WPF applications designed for full-screen viewing on a single server with two monitors.

Can I specify which application opens on which screen?

I am currently executing an executable on the desktop of various monitors, but ideally I want to control this programmatically.

If this is not possible, I can transfer the application to the WPF web client and open it in two full-screen Internet Explorer browsers, but again I will need to indicate which of them are loading on the screens.

thanks

+4
source share
1 answer

You will need to set Window.StartupLocation manually for both exe, and then you will have to manually set Window.Top and Window.Left to the coordinates for the monitor that you want each to display.

You probably want to use the Screen class to determine where each screen is located.

http://msdn.microsoft.com/en-us/library/system.windows.forms.screen.aspx

+4
source

All Articles