..:: Welcome To Invisible Room ::.. ..:: IT & Technology ::..

Tuesday, November 25, 2008

What's intended with object in Visual Basic

 

What's intended with object
object is a combination from code and data that can be considered as one unity. An object can form a part of application like a control or a form. As a whole from application can also have the shape of an object.

Where from the coming of object
Every object at Visual Basic defined by a class. To comprehend relation/link between object and class-nya, pay attention the following example :

  • Controls that exists at window Toolbox at Visual Basic is class-class. object is referred [as] known as control there will be no till you inculcate it at one particular form. When you inculcate a control, you have made a duplication or instance from class control are referred. 
  • Form where you employed at when design is a class. When run time, Visual

1

For example you name a textbox above form1, try pay attention window of control properties is referred as will present Text1 (name from control textbox are referred) and Textbox (name from class control are referred).

 

2

All objects is duplication from class they. The moment that become selfsupporting object, each can have properties that different each other.

For example you plant three fruits command button at one particular form, each command button is instance from class CommandButton until have a number of characteristic and abilities (propertieses, methods, and event-event) in common, where that definition at class. But, each can have Name, Caption, BackColor, Different Style in accordance with arrangement at each properties.

3

control each of them can have properties each.

Hopefully Useful

0 comments:

Post a Comment