Hi All,
I use multiple monitors in my setup (4 in total), which probably many of you do as well. But in my application I allow users to change screen size (workspace size) through a few different controls (they can enter height and width as custom values like 1200 x 1200 or 1980 x 1000, and also through a drop down that has common fixed sizes like 1920 x 1080, 2048 x 1600, etc). I also have a control that lets them decide to center the screen. This is where the problem comes in. If that box is checked, but they are not on the "primary monitor" according to Windows, then the form centers to the screen in the "primary monitor", not the monitor the application is running in. Is there a way to determine 1) If there is more than one monitor 2) what monitor the application is currently running in, and 3 what the resolution of any given monitor is (not all have to be the same). When I travel, I have a 2 monitor setup, my laptop has a big resolution like 2610 x 1600 (something weird), but my travel monitor is 1920 x 1080 (and that's where I run the application), so if different sizes behave different ways I want to be able to "get" the size before deciding how to handle things like centering, and primary monitor, or monitor application is running in.
Anyone faced this?
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."
I use multiple monitors in my setup (4 in total), which probably many of you do as well. But in my application I allow users to change screen size (workspace size) through a few different controls (they can enter height and width as custom values like 1200 x 1200 or 1980 x 1000, and also through a drop down that has common fixed sizes like 1920 x 1080, 2048 x 1600, etc). I also have a control that lets them decide to center the screen. This is where the problem comes in. If that box is checked, but they are not on the "primary monitor" according to Windows, then the form centers to the screen in the "primary monitor", not the monitor the application is running in. Is there a way to determine 1) If there is more than one monitor 2) what monitor the application is currently running in, and 3 what the resolution of any given monitor is (not all have to be the same). When I travel, I have a 2 monitor setup, my laptop has a big resolution like 2610 x 1600 (something weird), but my travel monitor is 1920 x 1080 (and that's where I run the application), so if different sizes behave different ways I want to be able to "get" the size before deciding how to handle things like centering, and primary monitor, or monitor application is running in.
Anyone faced this?
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."