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 ...

Get Windows Forms Programming in C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.