Handling different DPI in winform application

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
 
H

henk holterman

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-
 

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