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!

Re: Newbie question about system font size by Carlos

Carlos
Wed Jan 26 04:57:25 CST 2005

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


"Hin" <yhchan1@hotmail.com> escribió en el mensaje
news:enh2yB5AFHA.2392@TK2MSFTNGP14.phx.gbl...
> 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!
>
>



Re: Newbie question about system font size by saurabh

saurabh
Thu Jan 27 11:02:37 CST 2005

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

--Saurabh
"Hin" <yhchan1@hotmail.com> wrote in message
news:enh2yB5AFHA.2392@TK2MSFTNGP14.phx.gbl...
> 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!
>
>