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
Types of DBCombo boxes
What is the use of OLE?
What is the default workspace?
Explain about creating VB applications in excel?
Why visual basic is used?
Explain the differences between ActiveX Dll and ActiveX Exe?
What is a thread pool and how are the threads within a thread pool managed?
OLE is used for _______
How would you create your application in DHTML?
Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table?
I get a "file not found" error on the IIF function when I distribute by program. Why?
What are the rules which should be followed while naming a variable in VB?
Is it possible to call oracle database through ADO control or Object?
Discuss the working with to-do lists.
How can Visual Basic be used for server-side scripting?