Events-Delaegates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to declare an event, a delegate and the event handler in the same form/Class and handle the events concept/functionality. I know to decalre an event and a delegate in a different class and handle the event handler in the different form/class . But how to do all this in the same class/form

Can you please give me the sample, code snippets or the urls which is explaining this funtionality

Thank yo
Santhoshi
 
This should help get you started with an example. If your using delegates
to update a form from another class/thread, you may also want to use a
"pull" model, where you pull the stats from the other class using a timer in
your gui form. This, imo, is much easier and has other advantages over
using delegates to stuff the events into the gui thread pump.
http://msdn.microsoft.com/vcsharp/u...brary/en-us/dnforms/html/winforms06112002.asp

--
William Stacey, MVP

Santhoshi said:
I want to declare an event, a delegate and the event handler in the same
form/Class and handle the events concept/functionality. I know to decalre an
event and a delegate in a different class and handle the event handler in
the different form/class . But how to do all this in the same class/form.
 
Back
Top