ruanlab123
asked on
How to determine the screen resolution of an application when using more than 1 screen
Hi
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?
Thanks
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?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Screen.Width
Screen.Height
you may get the current resolution of the screen