Form, grid, image , label , line , OLE control , picture box , shape , text box .
Determines the border style for an object. For forms and text boxes, read-only at run time.
The BorderStyle property settings for a form are:
0 None (no border or related border elements).
1 Fixed Single. Can include Control-menu box , title bar , Maximize button , and Minimize button . Resizable only using Maximize and Minimize buttons.
2 (Default) Sizable. Resizable using any of the optional border elements listed for setting 1.
3 Fixed Double. Can include Control-menu box and title bar; cannot include Maximize or Minimize buttons. Not resizable.
The BorderStyle property settings for a grid, image, label, picture box, and text box are:
0 (Default for image and label) None.
1 (Default for picture box and text box) Fixed Single.
The BorderStyle property settings for a line and a shape are:
1 (Default) Solid. The border is centered on the edge of the shape.
6 Inside Solid. The outer edge of the border is the outer edge of the shape.
The BorderStyle property settings for an OLE control are:
1 Fixed Single.
For a form, the BorderStyle property determines key characteristics that visually identify a form as either a general-purpose window or a dialog box Setting 3 (Fixed Double) is useful for standard dialog boxes..
MDI child forms set to 2 (Sizable) will appear within the MDI form in a default size defined by the Windows environment at run time. For any other setting, the form will appear in the size specified at design time.
Note If a form with a menu is set to 3 (Fixed Double), it will appear with a setting 1 (Fixed Single) border instead.
At run time, a form is either modal Use the Show2IF9Z3Q method to specify whether a form is modal or modeless. or modeless .
Chapter 15, "Creating Graphics for Applications"