So how do I figure out how wide a form is in inches? Is there a function? or maybe a formula?
Printable View
So how do I figure out how wide a form is in inches? Is there a function? or maybe a formula?
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.
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)
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.