In this article, you learn about Vb 6 form and understand the types and different parts of VB 6 form object. There are many things that you can do with VB 6 form object. Here is a list.
- Change form title
- Add new title
- Create menu bar
- Create new toolbar for the form
- Add new status bar for the form
- Control and modify various form properties both design time or run-time.
What is a VB 6 Form ?
A VB 6 form is a window object. You can call this window under design view as
Forms.Whenever you open a new project or add new form in VB 6 IDE(Integrated Development Environment), you will get form in design view.
These forms during run-time are
What can we do with form?
You can change form properties to change how form appears and add codes for both form and its controls to change the behavior.
Speaking of controls, the VB 6 form allows you to add various controls in the form and design it as per your project.
What are different parts of VB 6 form ?
We have listed the different parts of a VB 6 form. Read them carefully as they will be helpful in creating new forms and configuring them for your VB projects.
Title bar – Every VB 6 form has a title bar with form title and a control box on the right-hand side with three buttons – the Minimize, the Maximize, and the Close.
You can change the title in two ways – the
property box in the lower right corner of VB 6 IDE or through the
code editor. We will see and example of this in future articles.
Menu bar – Under the title bar, is an optional menu bar, that contains various user menu. Each menu can take you to different places such as open other forms or do some windows related task such as copy, paste.
Main area – The main area is called the
client area is something you as a VB programmer need to take care of. In this part, you will add or remove controls as per the need of the project.
Border – Each of the VB 6 form has a border. You can change the properties of this border using property box or the code editor, whichever is convenient.
Now that you are comfortable with forms, let’s talk about another type of form.
MDI Form Basics
In a VB 6 project, there can be multiple forms and it is very difficult to manage loose forms. Therefore, VB 6 offers
MDI (Multiple Document Interface) form is a type of container form that displays all other forms in one place. Each of these other forms are called
MDI child forms.
The MDI child forms are standard forms that are changed into a MDI child by changing their
MDI child property to true.