Solved

Pixels per inch

Posted on 2013-11-06
3
696 Views
Last Modified: 2013-11-06
Using VB.net (specifically vb 2010 or vb 2012), how can I determine the pixels per inch of any monitor screen?
0
Comment
Question by:GCCal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39628975
I don't think you can.  The actual screen size in inches is not reported to the OS.  Only the dimensions in pixels because that's all the video driver cares about.  Two screens with the same pixel dimensions like 1280x1024 do not have to be the same physical size so the 'pixels per inch' won't be the same.
0
 

Author Comment

by:GCCal
ID: 39629043
Thanks very much Dave.  I had almost come to that conclusion but needed some expert verification.  Will be accepted.  I hope the points get awarded as this is my first question in a long time. Old minds tend to forget.  Thanks,
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39629126
You're welcome.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question