Handling different DPI in winform application

  • Thread starter Thread starter parez
  • Start date Start date
P

parez

HI,

Whats the best way of handling a DPI which is different from
development machine?
In my current case resolution is not an issue as all machines have the
same resoluation..

Should i get the DPI on the machine that is running the application
and then appropriate resize the font?

TIA
 
parez said:
Whats the best way of handling a DPI which is different from
development machine?
[...]


It depends, among other things, on how you constructed your form(s).
Tactical use of Anchor and Dock properties and Layout Panels may help.

Theoretically the best approach would be setting Form.AutoScale=DPI but
I have better experience with the (default) Font setting. You will have
to test is once in a while though.
Should i get the DPI on the machine that is running the application
and then appropriate resize the font?

That is already being done for you.

-HH-
 
Back
Top