- Form is window style screen that Visual Basic program displays.
- It is where controls and codes are added.
- Acts as containers for controls
- It is where controls are drawn and viewed.
- The layout of the form on a screen be previewed through the Form Layout Window command on the View menu
- Has a Maximize, Minimize, and close buttons.
Form
Properties
- Name
- An object’s Name property must start with a letter and can be a maximum of 40 characters
- It can include numbers and underline(_) characters but can’t include punctuation or spaces
- Appearance
- Specifies the paint style of controls on a MDIForm or Form object at design time.
- Caption
- Determines the text displayed in the Form or MDIForm object’s title bar
- Except for the label control, form and all other controls that have captions, the limit is 255 characters
- Long caption for the form’s title bar is clipped
- Enabled
- Determines whether a form or control can respond to user-generated events.
- Control Box
- Indicates whether a Control-menu box is displayed on a form at run time.
- MaxButton
- Specifies a value indicating whether a form has a Maximize button.
- MinButton
- Specifies a value indicating whether a form has a Minimize button
- Movable
- Specifies if the object can be moved or not.
- Visible
- Specifies a value indicating whether an object is visible or hidden
- WindowState
- Specifies a value indicating the visual state of a form window at run times.