You already use delegates all the time when you deal with events in .NET
classes. If you had a bankAccount class and wanted to implement an
AccountOverdrawn event for instance whenever X happens, you'd raise an event
in the get/set accessor and use a delegate as the event handler.
"Jet Leung" <xi**@163.net> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
Hi:
I had asked how to use delegate in the programming. And now actually I
want to know why and when the function need to run by the delegate?