Multiple Monitors
-
I have two monitors on two separate video cards and would like to display a form on the second monitor automatically when launched. I have form A launching on the first screen and form b launching at the same time. I want form B to go to the second screen. Any help greatly appreciated!! Thanks, Bob
-
I have two monitors on two separate video cards and would like to display a form on the second monitor automatically when launched. I have form A launching on the first screen and form b launching at the same time. I want form B to go to the second screen. Any help greatly appreciated!! Thanks, Bob
The upper left corner of the screen on the primary monitor is 0, 0. So, assuming both monitors are the same size (1280 by 1024, let's say), the upper left corner of the screen on a secondary monitor placed to the left of the primary would be -1280, 0. If the secondary is to the right of the primary, the upper left corner would be 1281, 0. If it's above it's 0, -1024 and so forth and so on...
frm2.StartPosition = FormStartPostition.Manual;
frm2.Location = new Point(-900, 200);Charlie if(!curlies){ return; }
-
I have two monitors on two separate video cards and would like to display a form on the second monitor automatically when launched. I have form A launching on the first screen and form b launching at the same time. I want form B to go to the second screen. Any help greatly appreciated!! Thanks, Bob
In multimonitor environments use the
DesktopLocation
property instead of theLocation
property to correctly position forms.