Form Adornments
In addition to size and location, forms have a number of properties that manage various other aspects of their appearance as well as corresponding behavior. The following settings govern the non-client adornments of a form: those parts of a form outside the client area that are drawn by Windows.
FormBorderStyle sets whether the form has a border, whether it can be resized, and whether it has a normal-size or small caption. Good forms and dialogs leave the default value of Sizable. Annoying dialogs change this property to one of the nonsizable options. Generally, programmers choose nonsizable options because of fear of control-layout issues, but WinForms handles that nicely, as we discuss later in this chapter.
In addition, there ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access