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
What is ActiveX Dll and ActiveX Exe?
Why visual basic is used?
what are the Default cursor Type and LockEdit type in DAO?
Explain about form creation in Visual Basic?
which property is used to change to some value to access a identity column in datacontrols?
Types of ActiveX Components in VB?
How much gain in performance will I get if I write my number crunching routines in C instead of Visual Basic?
What are the important components of OLEDB?
Is visual basic still used?
How would you access objects created in ActiveX Exe and ActiveX D1T ?
How can you save and Get data from Clipboard/ Recordset object consists what?
How do I get the number of free bytes on a disk?
Explain about declaring variables in Visual basic?
What is ActiveX? Explain.
Is visualvm free?