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 language does visual basic use?

514


How would you map properties to controls by using ActiveX Control Interface Wizard?

1712


Why does everybody say I should save in TEXT not BINARY?

1143


How do I make a text box not beep but do something else when I hit the Enter key?

978


How to get Cursor position using API?

1680






___ VB constant make the menu item in centre.

1339


What is the use of Hyperlink control for DHTML applications?

1926


How many ways you can access file using VB?

574


Which method is preferred to save datas like database?

1486


How do you zoom in visual basic?

527


Explain OLE Drag and Drop?

2049


How many File System Controls are there ? Explain.

1562


How can you get selected file from file system Control?

1401


Types of LockEdits in RDO.

1582


Difference between ActiveX Exe and Dll.

1475