Newbie question about system font size

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!
 
C

Carlos J. Quintero [.NET MVP]

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
 
S

saurabh

It can be found from GetAutoScaleSize
also see the AutoScaleBaseSize property.

--Saurabh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top