Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

i need to find pixels per millimeter for the screen.

I used to do this using GetDeviceCaps and geting VERTSIZE / HORZSIZE in VC++ 6.0. This gave me screen resolution in millimeters. I need to know the funciton if any in VB.net to do the same work OR any other way to get screen resolution in millimeter.

  • *Gurus*
Posted
As far as I know there isn't a way. You could probably retrieve a DPI value from a Graphics surface but since there's no way of Windows actually knowing the physical size of your monitor (most of the time) it would only be approximate, and would probably just be 72 (iirc).

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...