Results 1 to 4 of 4

Thread: Width in Inches?

  1. #1

    Thread Starter
    Addicted Member Dmyze's Avatar
    Join Date
    Mar 2002
    Location
    Seattle
    Posts
    160

    Width in Inches?

    So how do I figure out how wide a form is in inches? Is there a function? or maybe a formula?
    -Daryl
    "Two More Rolls of Duct tape, and the world is mine!"
    VB.NET Guru

  2. #2
    Junior Member
    Join Date
    Apr 2003
    Posts
    18
    forms are defined in pixels not inches and since every monitor has a different pixel per inch (i.e. .28 or .25 ) The conversion would be different for ever monitor.
    www.WinMgmt.com
    [email protected]

  3. #3

    Thread Starter
    Addicted Member Dmyze's Avatar
    Join Date
    Mar 2002
    Location
    Seattle
    Posts
    160
    VB6 had some way of doing it.. if I could get it to only work on my monitor I'd be happy. (Which is unsupported in VB.NET, http://msdn.microsoft.com/library/de...l/vbup2038.asp)
    -Daryl
    "Two More Rolls of Duct tape, and the world is mine!"
    VB.NET Guru

  4. #4

    Thread Starter
    Addicted Member Dmyze's Avatar
    Join Date
    Mar 2002
    Location
    Seattle
    Posts
    160
    I went into MSPaint, went into Image, Attributes, and it told me 127 x 127 dots per inch, so the answer I want for my computer is 127 pixels per inch. I'm happy with that answer, but I do wonder how to do find that via the framework.
    -Daryl
    "Two More Rolls of Duct tape, and the world is mine!"
    VB.NET Guru

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