This section examines the use of VB Form objects within a project. Topics covered
When a project's design specifies multiple forms, it is the programmer's job
to ensure a clean, easy-to-use interface. The knowledge of how forms are loaded
into memory, the effect when forms leave memory, when to expect a form to be displayed,
and when it is removed are critical elements in designing a professional-looking
and behaving application.
Also knowing how information is stored at design time will help to ensure
forms that can be used throughout various projects or moved from one version of
VB to another.
Forms are used to contain other controls for user interaction. When one object
has the capability to host other controls, this object is known as a Container.
When controls are placed on a form, they are affected when the form is moved or
resized. This allows the form to act as a Container object. The Picture control
is also a Container and can have other controls placed on it.
This section looks at how to load and unload forms from memory, how to show
and hide forms from the screen, and how design time forms are stored.