Completed
Last Updated: 13 Jul 2012 03:22 by ADMIN
ADMIN
Jack
Created on: 13 Jul 2012 03:22
Category: UI Framework
Type: Bug Report
1
FIX. controls layout is broken when using custom DPI settings
1. Create a new project and add a Form.
2. At design time add several different Rad controls.
3. Build the application.
4. Change the DPI settings of your operating system to 125% (make sure to use XP style scaling).
5. Run the application.


The issue appears when using XP style scaling on Vista or Windows 7 operating systems. You can work around it by disabling this option. To do this, follow these steps:

1. Right click on the desktop and choose the personalize option.
2. Click the Display option located at the left bottom corner of the form.
3. Click the Set custom text size (DPI) option located at the left side of the form.
4. Uncheck the Use Windows XP style DPI scaling.
5. You should reboot your PC in order to apply changes.

There is another solution that works in most of the cases. You should remove the following lines from your form Designer.cs file:

this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
0 comments