If you're new to objects, you may want to see my article on Objects.
Here is the basic concept of classes and objects phrased in different ways:
Here is another way to look at the same topic:
strName) can be created for an instance of a data type (EG: String). This is a scalar variable and it points to a memory space that is formatted for holding that type of data.txtTextBox) can be created for an instance of a class (EG: TextBox). This is an object variable and it points to a memory space that can accommodate a component which can encapsulate data (in properties), functions (called methods), detect events, and even its own child objects.Nearly everything in VB (and Windows) utilizes the class and object model. While a lot can be accomplished with just the classes that come in the usual VB Toolbox, even more can be accomplished by creating your own classes.
Page Modified: (Hand noted: 2007-09-20 21:13:44Z) (Auto noted: 2007-11-17 06:36:55Z)