title: Can I Tell Visual Studio not to Change the DPI of a Project?
body: <p>I have a project converted from .NET 1.1 to 3.5 being developed in 2008.</p>
  
  <p>If I open the project on Windows 7, it converts the size of everything to 120dpi sizes.  If I then open it with 96 dpi it changes back.  Is there any way for me to develop so it looks good in both, and <em>not</em> have Visual Studio change the sizes if opened on a system with different DPI?</p>
  
  <p>This question is perhaps better phrased/duplicated here:
  <a href="https://stackoverflow.com/q/5939926/486620">visual studio designer dpi setting</a></p>
  
  <p>Or here:
  <a href="https://stackoverflow.com/q/4278901/486620">Visual Studio and DPI issue</a></p>
  
  <p>To be clear what I am trying to do is prevent the control from being resized in the designer when being used by multiple developers with different DPI settings.  In all cases where I've noticed this issue I've been working with a .NET 1 or .NET 2 project upgraded to use Visual Studio 2008 originally, now Visual Studio 2010.</p>
  
  <p><strong>Update</strong> (in case anyone wants to compete with @Ben for bonus points): I have a form which resizes correctly, but the size of the window gets changed programmatically.  Because the designer isn't aware of the dimensions, the window resizes incorrectly if a developer using a different DPI touches the form.  Is there a way of getting around that problem other than going back to not scaling the UI at runtime?</p>
  
  <p>For instance: I have two sizes for my window declared, which work correctly if developers use 120 dpi at design time:</p>
  
  <pre><code>private static Size smallSize = new Size(960, 500);
  private static Size largeSize = new Size(960, 615);
  </code></pre>
  
  <p>I'm just trying to wrap my head around what I would need to do to not have a horrible design regression if someone edits the form in a 96dpi designer.</p>