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
OLE is used for _______
How would you attach pictures in Treeview Control?
How do I create controls dynamically (at run-time)?
How would you access objects created in ActiveX Exe and ActiveX D1T ?
In which areas the Error occurs?
What is the use of Imagelist Controls ?
Explain Default cursor Type and LockEdit type in DAO?
How do I create a new form in visual basic?
Differentiate between DAO,ADO and Adodc as in data access objects?
how to make unlimited id(1rimjim,2rimjim,3rimjim....etc) login grp chat pogram for jabber?
What is understand in resource tracking?
How to get Cursor position using API?
Is it possible to Manipulate data through flexgrid? Explain.
Is it posible to Create Tables Through Querydef?
What are some methods you can use to send data from one VB executable to another one?