|
|
|
|
Objects
Home » Visual Basic » Development
Objects
Since VB4, Microsoft has been promoting the "object-oriented" aspects of Visual Basic. It seems like everything you read is object-this and object-that! So what is the real story about objects? Who needs them, and why? How do you use them and when are they overkill? Can you use them without having to be an expert in all aspects of objects?
Since VB4, Microsoft has been promoting the "object-oriented" aspects of Visual Basic. It seems like everything you read is object-this and object-that! So what is the real story about objects? Who needs them, and why? How do you use them and when are they overkill? Can you use them without having to be an expert in all aspects of objects? If you're like me, a solo programmer whose contact with the VB world is limited to email and magazines, do the answers apply to you? I'm interested in writing the tutorial as much to find out the answers myself, as you are to get the answers!
--------------------------------------------------------------------------------
Introduction to Objects
Let's get down the bottom line quickly. Objects are a combination of code and data which you can treat as a single item. You have already worked with objects - the controls and forms in a VB project. So the purpose of this tutorial is not so much to explain what they are, but rather to go into the details of how they work and how you can use them in your own programs. There is a lot more to objects than just drawing a control on your form and that's what we want to cover here. We'll especially get into how you create and handle objects in code, which is much different than simply drawing controls onto a form!
In case you have any question about the value of objects, let me state without reservation, that objects (in the form of controls) are the single biggest reason why VB has been so successful. In more recent versions of VB, Microsoft has expanded the object features of VB, making it even more powerful than ever.
|
More Tutorials by this user
|
|
|
|
|
|
|
|
|