c# - Position to center screen in triple monitor setup with extended view -


i have 3 monitors/screens of different sizes/resolutions setup extended view, wired same nvidia graphic card. , left right:

  1. screen#0: 2400*1080
  2. screen#1: 1920x1080
  3. screen#2: 1920*1080

my application has 3 separate windows, respectively position each window corresponding monitor/screen following code

window00.left = system.windows.forms.screen.allscreens[0].workingarea.left; window01.left = system.windows.forms.screen.allscreens[1].workingarea.left; window02.left = system.windows.forms.screen.allscreens[2].workingarea.left;  window00.windowstate = system.windows.windowstate.maximized; window01.windowstate = system.windows.windowstate.maximized; window02.windowstate = system.windows.windowstate.maximized; 

i 3rd windows (window02) position right screen (screen#02), both 1st , 2nd windows (window00 & window01) stack , maximized first screen (screen#00), leaving middle screen#01 empty displaying background desktop environment, regardless if set windowsstate.maximized or normal.

even if workaround problem through offsetting window01 position width of screen#00 3 windows position corresponding screens, if maximize windows.state, window01 still jumps screen#00.

why happening , why window not position or maximized workingarea assigned to? due wpf application using forms properties?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -