« 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.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.