D
Darren
Hi,
If I am running an application on a system that is using Large Fonts
(screen resolution set to 120 DPI) and with the Form's AutoScale
property set to true, how can I get (or calculate) what a window's size
would be before the system auto-scales it?
For example if the form's size is set to 300x200, a 120 DPI system will
auto-scale the form and the actual size will change to 381x237. I need
to know what the original size was before the form was scaled. Granted
in this case, I know that I started out at 300x200, but the form in my
program is sizeable. If the user resizes the form and closes it, I
want to be able to save the size so that the form will open with the
exact same size the next time the program is run. I can't save the
"381x237" value, as that would cause the form to auto-scale to an even
larger size.
How can I determine the original "base" size of the form?
Thanks in advance!
--Darren
If I am running an application on a system that is using Large Fonts
(screen resolution set to 120 DPI) and with the Form's AutoScale
property set to true, how can I get (or calculate) what a window's size
would be before the system auto-scales it?
For example if the form's size is set to 300x200, a 120 DPI system will
auto-scale the form and the actual size will change to 381x237. I need
to know what the original size was before the form was scaled. Granted
in this case, I know that I started out at 300x200, but the form in my
program is sizeable. If the user resizes the form and closes it, I
want to be able to save the size so that the form will open with the
exact same size the next time the program is run. I can't save the
"381x237" value, as that would cause the form to auto-scale to an even
larger size.
How can I determine the original "base" size of the form?
Thanks in advance!
--Darren