Chapter 7. Working with Objects in Visual Basic

In this hour, we will cover

  • The difference between objects and classes

  • Creating an object

  • Setting an object’s properties

  • Calling an object’s methods

  • Handling an object’s events

  • Examples of creating objects from classes in the .NET Framework

In Hour 5, “Understanding Visual Basic’s Variables and Operators,” we looked at using variables and operators in Visual Basic. In Hour 6, “Managing Program Flow with Visual Basic’s Control Structures,” we looked at control structures, such as If statements, looping constructs, and subroutines and functions. There’s one more important topic we need to discuss regarding Visual Basic before moving on to future topics. Specifically, we need to examine how to use objects ...

Get Sams Teach Yourself ASP.NET 2.0 in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.