I need to find out if the user\'s screen is set to normal 96 dpi (small size), large 120 dpi fonts, or something else. How do I do that in VB.NET (preferred) or C#?
Have a look at the DpiX and DpiY properties. For example:
using (Graphics gfx = form.CreateGraphics()) { userDPI = (int)gfx.DpiX; }
In VB:
Using gfx As Graphics = form.CreateGraphics() userDPI = CInt(gfx.DpiX) End Using