An event is a hook on an object where the object can say “Hey, something interesting must happen” (or just happened), and the code outside the object can say (before that something happens) that “I'm interested in this message” .
Take the buttons, for example, this code:
btOK.Click += new EventHandler(btOK_Click);
This tells the button: Hey, when you want to fire the Click event (which fires when the user clicks the button), let me know by calling my btOK_Click method.
-. , , , : " , , , ", . , , " ", "", .
, :
- : , : " - , , , "
- : ,
- : , , .
.NET/#:
... , , - .
.