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

Answer Posted / pratap557

Property are a type of method that shows state of an Object
like Caption, backcolour etc.
Methods/Functions are for changing Or doing something on
the Object Like Move,Remove, Add etc.

Event are Objects which means that something happend for
which the object must respond to. And for this very reason
we write method like
button1_Click( sender Object, event Object)
The event Object(Delegate) is related with the method of
that responder Object(Button)

Is This Answer Correct ?    176 Yes 30 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is OLEDB?

1537


what are the Differenct Types of Procedures in VB?

1452


What is the difference between adodc and adodb in vb?

482


How would you create properties by using class Builder Wizard?

1474


What are the types of Error? In which areas the Error occurs?

1621






What is the use of property page Wizard in ActiveX Control?

1991


___,__,___ are the type of combo box?

1140


Difference between Linked Object and Embedded Object?

1779


How do I get the Tab key to be treated like a normal character?

990


Whether HTML supports multimedia: and document links?

1414


Difference between Dynaset and Snapshot?

1664


Explain about ADO control?

577


Is there a way to break long lines in VB code?

950


What is form in visual basic?

514


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

6309