title: Windows XP application (.NET/C#) resize problem
body: <p>I have a Windows (XP/Vista/7) application implemented in C# using .NET 3.5 and I have a weird resize problems on a small number of Windows XP machines (I haven't been able to reproduce the problem myself). </p>
  
  <p>The application uses a System.Windows.Forms.Form with a System.Windows.Forms.Panel which holds sub-views. Each sub-view is in itself a System.Windows.Forms.Form. During initialization each sub-view is added to the panel (panel.Controls.Add(sub-view)) and the controller selects sub-view by playing with the Hide and Show-methods of each sub-view. </p>
  
  <p>Figure 1 shows how the application normally looks. The panel is the part with the lovely waterdrop-background-image.</p>
  
  <p>But on some Windows XP machines the application looks like figure 2. The entire application has been resized (weird in itself since I have static Max/Min attributes) and the panel is bigger (and has dropped slightly). The background image repeats and any text on the panel is also resized. </p>
  
  <p>Any ideas what this can be? Can it be a .NET-related problem? I do not have access to the problematic machines so all have to go on at the moment is some blurry screenshots. </p>
  
  <p><img src="https://i.stack.imgur.com/msCBq.png" alt="Mockup of application resize problem"></p>
  
  <p><strong>Update</strong></p>
  
  <p>It is a DPI problem. Changing the DPI setting (on Windows XP) and the application will be resized (but on Vista/7 it stays correct). Thank you for the speedy response guys. </p>