Hi all,
Is there any way to find the monitor screen size looking at the screen resolution. May be using a simple calculation, because I hope there is some relation with those two.
Printable View
Hi all,
Is there any way to find the monitor screen size looking at the screen resolution. May be using a simple calculation, because I hope there is some relation with those two.
Not definitely. The resolution is the number of pixels spread across the physical width and physical height of the monitor, regardless of resolution. So you can have a 640*480 resolution on a 42" monitor as well as a 22" monitor.
However, monitors do have a maximum resolution and you should be able to find a close approximation at least to what the size of the monitor should be based upon your knowledge of its maximum resolution.
An alternative is to get out a measuring tape...
there is an easy way to do this in vb6, but you didn't mention the version you are using.
in vb6, Twips are directly related to monitor size. 1440 of them to an inch. If you have the maximum twip you can figure out the screen size.
I don't know if there is an equivalent vb.net measure.
Thanks for all comments. I'm just looking a general way to find this.
May I ask... WHy do you want to do this through the computer? And not get a tape measure out? lol.
I just want to familiar with it, if there is a simple solution. That's it. If so simply I can say the size of the screen just looking at.
Can you not use System.Windows.Forms.Screen.PrimaryScreen.Bounds for this?
Hey pal, I'm looking to do it general way. Just looking those resolution numbers and simple calculation. I don't want to do it using any application/code.
Only works if the screen PPI is set properly which in 99% of computers it is not.Quote:
Originally Posted by Lord Orwell
There is no relationship between resolution/maximum resolution and physical dimensions. Sorry.Quote:
Originally Posted by eranga262154
Most laptops have a smaller pixel pitch than desktop monitors, for example.
evidently not. i tried it on my own system and it was wrong :(Quote:
Originally Posted by penagate
Thanks for all comments. I check it too and seems there is not relation. So I think no need to worry about my question.