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...
Forms and Controls
Understanding the Relationship of VB to Windows
All application programs (the kind of programs developed with such languages as Visual Basic) must be developed to work with a specific operating system. Application Programs interact with operating systems by using operating system functions that applications developers can exploit. These functions are usually referred to as application...