Hi All,

I use some simple code to determine the screen resolution of the target PC my app will run on:

iXRes = Screen.Width / TwipsPerPixelX
iYRes = Screen.Height / TwipsPerPixelY

If the screen resolution is too low I show a warning to the user.

My issue is that recently, the above code doesn't seem to work on certain PC's. On further investigation, I found that the .Width and .Height values are off by 2.5x in these cases. I further noticed that the display properties on the problem machine have a 'Scale Factor' setting set to 250%..... So, this setting is clearly the reason the above code isn't returning the correct values.

I've read a lot of the screen scaling threads that discuss similar issues, but they don't really seem relevant as my application does not allow resizing. I just simply need a way to determine the true screen resolution when launching my app.

Thanks!

Jack