O'Reilly logo

Windows Forms Programming in C# by Chris Sells

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Layout

After all this talk of collecting and ordering controls, you may be wondering how to arrange them, especially in the face of the needs of different users with respect to system font size and the size of the data being entered.

Form Auto-Scaling

For example, if you lay out a form with system font size set to Normal (96 dots per inch, or dpi) in the Display control panel, what happens when your users are using Large (120 dpi) or one of the custom settings? You'd certainly prefer that a form such as that in Figure 2.15 show correctly at all font sizes.

Figure 2.15. A Sample Form at Normal Size Fonts

If you're the curious type, you might even ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required