Newbie question about system font size

  • Thread starter Thread starter Hin
  • Start date Start date
H

Hin

After increasing the system font size (e.g. 96 -> 120 dpi),
the form will becomes larger.
How can i know by what ratio the form is enlarged?

At first i think it is 120/96 (= 1.25) but seems i'm wrong...

Anybody knows the solution?
Thanks!
 
Have you tried to calculate the ratio using Font.Size rather than densities?

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
 
It can be found from GetAutoScaleSize
also see the AutoScaleBaseSize property.

--Saurabh
 
Back
Top