Events-Delaegates

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
 
W

William Stacey [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top