0

I am using C# and WinForms for a project but my controls and the items from my CheckedListBox overlap.

enter image description here

I think it has something to do with AutoScaling. Using Font autoscaling makes it look like the image attached, using DPI autoscaling fixes the overlapping controls but doesn't change the CheckedListBox overlap.

Equalsk
  • 7,954
  • 2
  • 41
  • 67
Sopwafel
  • 43
  • 8
  • 1
    Have a read of this and ensure you're following the guidelines: https://stackoverflow.com/questions/22735174/how-to-write-winforms-code-that-auto-scales-to-system-font-and-dpi-settings – Equalsk Dec 28 '17 at 11:01

1 Answers1

0

I found the solution in Equalsk's link.

I installed .NET 4.7.1 (4.7 would be fine too) and added the following to my app.config.

<System.Windows.Forms.ApplicationConfigurationSection>
   <add key="DpiAwareness" value="PerMonitorV2" />
</System.Windows.Forms.ApplicationConfigurationSection> 
Sopwafel
  • 43
  • 8