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

Explain Types of DBCombo boxes?

596


Is it possible to change menu runtime using API? If yes? Specify the function names.

1543


To validate a range of values for a property whenever the property values changes,which type of property procedure you use?

1440


How to load and unload child forms.

673


OLE is used for _______

1102






Through which protocol OLEDB components are interfaced?

1539


What are the types of API Types.

1696


What is a thread pool and how are the threads within a thread pool managed?

1608


What are the different procedures associated with the object?

602


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

1638


How would you find out the value property in Slider Bar Control?

1439


Is it posible to Create Tables Through Querydef?

1671


How do I remove/change the picture property of a control at design time?

1107


How come I get a "No Current Record" error when I use a a Data Control on an empty table?

1057


Which type of object requires this object?

1588