DHVTSU-CCS
Department of Information Technology
Laurence G. De Jesus
MODULE 3:f Windows Application, Basic Form Controls and their Properties
WINDOWS FORMS
If you click the icon on the top left corner, it opens the control menu, which contains the various commands to control the form like to move control from one place to another place, to maximize or minimize the form or to close the form.
Windows Form commonly use Properties
Visual Basic Form is the container for all the controls that make up the user interface. Every window you see in a running visual basic application is a form, thus the terms form and window describe the same entity. Visual Studio creates a default form for you when you create a Windows Forms Application.
Following table lists down various important properties related to a form. These properties can be set or read during application execution. You can refer to
Microsoft documentation for a complete list of properties associated with a Form control: Every form will have title bar on which the form's caption is displayed and there will be buttons to close, maximize and minimize the form shown below:
S.N Properties
Description
1
AcceptButton
The button that's automatically activated when you press Enter, no matter which control has the focus at the time. Usually the OK button on a form is set as AcceptButton for a form.
2
CancelButton
The button that's automatically activated when you hit the Esc key.
Usually the Cancel button on a form is set as CancelButton for a form.
3
AutoScroll
This Boolean property indicates whether scroll bars will be automatically attached to the form if it is resized to a point that not all its controls are visible. 4
BackColor
Sets the form background color.
5
BorderStyle
The BorderStyle property determines the style of the form's border and the appearance of the form:
None: Borderless window that can't be resized.
Sizable: This is default value and will be