|
-
Jun 24th, 2008, 05:01 AM
#1
Thread Starter
PowerPoster
[RESOLVED] Screen size using resolutions.
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.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Jun 24th, 2008, 02:00 PM
#2
Re: Screen size using resolutions.
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...
-
Jun 24th, 2008, 08:31 PM
#3
Re: Screen size using resolutions.
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.
-
Jun 24th, 2008, 10:05 PM
#4
Thread Starter
PowerPoster
Re: Screen size using resolutions.
Thanks for all comments. I'm just looking a general way to find this.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Jun 25th, 2008, 03:33 AM
#5
Fanatic Member
Re: Screen size using resolutions.
May I ask... WHy do you want to do this through the computer? And not get a tape measure out? lol.
-
Jun 25th, 2008, 03:34 AM
#6
Thread Starter
PowerPoster
Re: Screen size using resolutions.
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.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Jun 25th, 2008, 02:09 PM
#7
Junior Member
Re: Screen size using resolutions.
Can you not use System.Windows.Forms.Screen.PrimaryScreen.Bounds for this?
-
Jun 25th, 2008, 08:35 PM
#8
Thread Starter
PowerPoster
Re: Screen size using resolutions.
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.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Jul 4th, 2008, 08:10 AM
#9
Re: Screen size using resolutions.
 Originally Posted by Lord Orwell
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.
Only works if the screen PPI is set properly which in 99% of computers it is not.
-
Jul 4th, 2008, 08:13 AM
#10
Re: Screen size using resolutions.
 Originally Posted by eranga262154
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.
There is no relationship between resolution/maximum resolution and physical dimensions. Sorry.
Most laptops have a smaller pixel pitch than desktop monitors, for example.
-
Jul 4th, 2008, 05:01 PM
#11
Re: Screen size using resolutions.
 Originally Posted by penagate
Only works if the screen PPI is set properly which in 99% of computers it is not.
evidently not. i tried it on my own system and it was wrong
-
Oct 27th, 2008, 10:37 PM
#12
Thread Starter
PowerPoster
Re: Screen size using resolutions.
Thanks for all comments. I check it too and seems there is not relation. So I think no need to worry about my question.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|