Link to home
Start Free TrialLog in
Avatar of ruanlab123
ruanlab123Flag for South Africa

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
Avatar of tigin44
tigin44
Flag of Türkiye image

by using the

Screen.Width
Screen.Height

you may get the current resolution of the screen
Avatar of openshac
openshac

ASKER CERTIFIED SOLUTION
Avatar of ThievingSix
ThievingSix
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial