Results 1 to 12 of 12

Thread: [RESOLVED] Screen size using resolutions.

  1. #1

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Resolved [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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

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

  3. #3
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    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.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  4. #4

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    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

  5. #5
    Fanatic Member Lerroy_Jenkins's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    661

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

    "η β π", or "Eta Beta Pi" (Eat A Better Pie)

    01001000
    01000101
    01001100
    01010000


    My Own Code - WordCounter

    Useful Forum Links -Reputation - What is it?

  6. #6

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    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

  7. #7
    Junior Member
    Join Date
    Jun 2008
    Posts
    16

    Re: Screen size using resolutions.

    Can you not use System.Windows.Forms.Screen.PrimaryScreen.Bounds for this?

  8. #8

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    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

  9. #9
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Screen size using resolutions.

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

  10. #10
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Screen size using resolutions.

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

  11. #11
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Screen size using resolutions.

    Quote 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
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  12. #12

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    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
  •  



Click Here to Expand Forum to Full Width