What is the difference between a property a method and an
event? Give an example of each.

Answer Posted / ashwini khopkar

Property:-
1) It tells something abt an object, such as its
name,color,size,location,or how it'll behave.
2) We can thing property as adjectives that describe
objects.
3) For e.g., Caption property of a form are called as
Form1.caption.
Method:-
1) Actions associated wid objects are called as method.
2) Methods are verb.
3) Some typical methods are move, print, resize & clear.
Event:-
1) Code related 2 some objects.
2) It is also verb.
3) It is an action that may b taken by d usr, such as
click, drag, key press, or scroll.

Is This Answer Correct ?    30 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

OLE is used for _______

1320


How would you attach pictures in Treeview Control?

1716


How do I create controls dynamically (at run-time)?

1129


How would you access objects created in ActiveX Exe and ActiveX D1T ?

1770


In which areas the Error occurs?

1654






What is the use of Imagelist Controls ?

1724


Explain Default cursor Type and LockEdit type in DAO?

874


How do I create a new form in visual basic?

735


Differentiate between DAO,ADO and Adodc as in data access objects?

6544


how to make unlimited id(1rimjim,2rimjim,3rimjim....etc) login grp chat pogram for jabber?

2151


What is understand in resource tracking?

873


How to get Cursor position using API?

1857


Is it possible to Manipulate data through flexgrid? Explain.

2213


Is it posible to Create Tables Through Querydef?

1830


What are some methods you can use to send data from one VB executable to another one?

1994