Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Getting wrong Screen Res from Win 8

$
0
0

On a Win8 hires display machine which has resolution of 3200 by 1800; using VS2010 to write a winforms app. Using .net 4.

I use this call and get 900 by 1600 (about a quarter of the size expected):

intscreenWidth =Screen.GetBounds(newPoint(0, 0)).Width;

           

intscreenHeight =Screen.GetBounds(newPoint(0, 0)).Height;

Is there another way to get the size for Win8?

           

intscreenHeight =Screen.GetBounds(newPoint(0, 0)).Height;


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>