4. Layout

IN CHAPTER 2: FORMS AND CHAPTER 3: DIALOGS, we explored the lion's share of form- and dialog-related issues, which are all ably supported by the Form class. But forms have another important, obvious role: They are canvases on which you compose controls. In all but the most trivial cases, it would require a serious investment of time to compose controls and make sure everything's laid out just right—it would, that is, if it weren't for the layout support present in Windows Forms and VS05. Additionally, this support helps a form and its controls gracefully retain their layouts in the face of user resizing, localization, and, in some cases, control rearrangement at run time.

This chapter explores the range of layout support offered by ...

Get Windows Forms 2.0 Programming 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.