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. We need to discuss one more important topic regarding Visual Basic before returning to ASP.NET. Specifically, we need to examine ...

Get Sams Teach Yourself ASP.NET 3.5 in 24 Hours, Complete Starter Kit now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.