Solved

Pixels per inch

Posted on 2013-11-06
3
678 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
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

820 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