« The Kailua Project - The forgotten methods in the ADO.NET API | Main | Passing an enumerated list to a PropertyBag for a PropertyGrid »

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341c6cc353ef00d83532cf7b69e2

Listed below are links to weblogs that reference Get screen DPI in .NET:

Comments

Leonjollans

Thanks a bundle for this, I too spent ages looking through the Screen class and so on. Equally amazed this needed p/invoke, especially with all the Win 7 trumpeting about high DPI support :-. (whistles).

I haven't done enough GDI to have knocked this out quickly myself.. so thanks again!

David Thielen

Try changing your screen properties to large fonts - then you will see this as 105.

DJ Burb

This is the same as Graphics.DpiX and Graphics.DpiY in .Net..... which they both don't work properly...

The return value is not resolution independent..... i get 96 dpi as my value on all my resolutions.

The comments to this entry are closed.