well and how do I find that out at runtime?
lets say Im running my app on two comps with two different screen resolutions. I need to know how many pixels each inch is on each monitor.
Dunno about twips, I dont think that would work
Pixels will vary with the screen resolution. Use Screen.TwipsPerPixelX/Y to calculate them. Your original question asked how many twips per inch/centimeter.
There is no Screen object in VB.NET. There is no real way of getting an accurate pixels per inch measurement, I suppose one way would be to ask the user what size monitor theyre using.
[edit]
Ok, there is a Screen object but it doesnt do what you want.
[/edit]
and there HAS to be a way to do this in .NET. It would be ridiculus otherwise. There is a DpiX and DpiY property, but I couldnt make it to work
any ideas?
Dont bother bumping, it only irritates people. Your best bet might be what I already said, there isnt a way of getting a true measurement of pixels/inch from a screen unless you know the size of the screen.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.