What to do with a winforms application that looks bad with medium / large fonts included in Windows 7?

I have a windows application built using .NET 3.5 and a relatively old version of Infragistics controls. It turns out that some forms / controls look pretty bad when viewed in Windows7 and medium or large fonts. What are my solutions to this problem? I have dozens of forms and would like to get a short-term solution, rather than rewrite it, since the application will be migrated to WPF or Silverlight in the medium term.

Is there a switch that I can "disable" medium / large fonts for the application as an immediate fix?

What general principles should be followed for winforms applications for convenient display of medium / large fonts?

+4
source share
2 answers

So far, the main things that I found, I had to do:

  • Change the forms / controls, so AutoScaleMode is set to Font

  • Resize any programmatically resized shapes to depend on the size or position of other controls, rather than hardcoded numbers, which are correct if the fonts are of normal size.

In addition, they mainly work as desired. Mostly. However, the weird thing to keep track of.

+3
source

+1 in the AutoScaleMode clause.

I reworked all the forms in TableLayoutPanels (it took an age) and set all my shortcuts to AutoResize = True . TableLayouts takes away most of the pain. Scaling and alignment is a breeze, although they are pretty slow compared to WPF.

0
source

All Articles