Windows XP Application Resize Issue (.NET / C #)

I have a Windows application (XP / Vista / 7) implemented in C # using .NET 3.5, and I had strange problems resizing on a small number of computers running Windows XP (I myself could not reproduce the problem),

The application uses System.Windows.Forms.Form with System.Windows.Forms.Panel, which contains sub-views. Each subtask in itself is System.Windows.Forms.Form. During initialization, each subtask is added to the panel (panel.Controls.Add (subview)), and the controller selects the subtask by playing with the Hide and Show methods of each subview.

Figure 1 shows what the application looks like. A panel is a part with a wonderful background for water.

But on some Windows XP machines, the application looks like Figure 2. The whole application has been changed (oddly enough, since I have static Max / Min attributes), and the panel is larger (and slightly decreased). The background image repeats, and any text on the panel changes.

Any ideas what this could be? Could this be a .NET related issue? I do not have access to problematic machines, so all I need to do at the moment is blurry screenshots.

Mockup of application resize problem

Update

This is a DPI problem. Changing the DPI setting (in Windows XP) and the application will be changed (but in Vista / 7 it will be correct). Thanks for the quick response.

+3
source share
1 answer
+1

All Articles