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

Get Windows Forms Programming in Visual Basic .NET 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.