| |||||||||||||||||
![]() |
![]() |
![]() |
|||||||||||||||
|
How to Use Object? <Previous lesson | Table of Content | Content of this Chapter | Next lesson> All controls in the Visual basic Toolbox are classes. When you do drag and drop those controls into a form, you are actually taking a particular object from that class. Form itself is also a class. Form has several methods such as Load (to load new form in memory but does not show it), Show (to display the form), Unload (to remove the form from memory), and Hide (to hides the form, but does not remove from memory), Move (to move the form), and so on. To use an object variable is similar to use a conventional variable,
but with one additional step — assigning an object to the variable:
To set or get the Property of an object, it is similar
to assigning to or to obtain value from a variable. To call the Method
of the object is similar to call function or procedure. To set the value
of a property, use the following syntax: Example: To get the value of a property, you use the following syntax: Example: Calling an object method is using the following syntax: For Example: Me. Show ‘ To show the Form <Previous lesson | Table of Content | Content of this Chapter | Next lesson> |
||||||||||||||||
© 2006 Kardi Teknomo. All Rights Reserved. Designed by CNV Media |
|||||||||||||||||