The concept of Focus
Naming a Project
Learning How to Manage Visual Basic Projects
In this section, you learn how to open and save a project, add and delete files from the Project window, give an object focus (further explained in later section “The Concept of Focus”), and use the other File commands provided with Visual Basic. You will also work through several exercises to rest your knowledge of the concepts presented.
Opening,...
Understanding the Concept of a Visual Basic Project
Writing and Running first Visual Basic Program
Last week you have learned how to run a program that had been made for you. You probably noticed that when working with Visual Basic, several types of windows could be inspected – even though you were not asked to examine any one window in detail. Here, you learn about three types of windows:
Project window
Properties window ...
Running Visual Basic Applications
Running Sample Visual Basic Programs
Software Components
Invisible Objects in Visual Basic
Not all objects in Visual Basic are visible and displayed to the user. Neither are all object windows. Visual Basic contains system objects that are available to use, although they are not displayed in the toolbox, including the following:
App – This object stores information about the application, including its name, path (where...
Understanding Objects as Instances of Classes
In the last example the two text boxes and the form we have tried are referred to as windows as well as objects. In a Windows program, just about everything that you see on the screen is a window, and many items that you don’t see are windows.
In a standard Windows word processing program, such as Word or WordPerfect, every button on the toolbars...
Visual Basic Statements and Instructions
The discussion of objects and encapsulation in "Forms and Controls", uses several lines of Visual Basic code, including examples of object properties being assigned values and methods being invoked. The terms code and instructions can be used interchangeably, but the term statement means something specific in Visual Basic.
Visual Basic Statements...
A Closer Look at Encapsulation
Object Properties
A property is a named attribute of an object. Properties are used to change the appearance and behavior of objects, such as forms and controls. These properties include attributes affecting the color, size, and name of the object.
Let’s take an everyday object, such as a shirt. Suppose you write the following:
Shirt.Color...