How to determine the screen resolution of an application when using more than 1 screen
Posted on 2009-12-18
Is it possible to determine the screen resolution of the screen your application is running in when using more than one screen. For example, I'm using dual display in Windows, screen1 and screen2. Screen1 has a resolution of 1680 x 1050 and screen2 has a resolution of 1024 x 768. When I run my application it will start in screen1, but then I move it to screen2. In my code I use Screen.Width / Screen.Height which returns the values of screen1 and not screen2. I need to get the resolution of the screen the application is running in?