120dpi and vs.net form designer

I've set 120dpi on my computer, and I open a form (version 1) created by my teammate and edit it on my computer, the forms are auto scaled up and look great on my screen.

I've added some controls to the form and I haven't changed the size of form and saved it (version 2), I sent it back to my teammate. When he open the forms on his 96 dpi computer, forms are scaled down, and it is too small to see on his screen, not the same size as version 1.

Any ways to prevent forms from scaling down after editing on my 120dpi windows !

Thank you very much.


Answer this question

120dpi and vs.net form designer

  • chrisminett

    By "set 120dpi" do you mean you've changed the font size in the display settings via Control Panel

    WinForms recognizes that the font you used to design the form is much larger than that of the new display (96dpi) and scales all the sizes down. This is done because the default AutoScaleMode for a WinForm is "Font". You could try setting AutoScaleMode to other values to see if anything looks "better".



  • 120dpi and vs.net form designer