Listening to an event

G

Guest

I am perplexed!

I have a global data structure that maintains current data status within my
application.

I also have a form that allows a user to update information which I want to
then transfer to my global data structure.

I want to raise an event each time the user updates data in the form and
have that event listened to by the global data structure. The listening
event handler will then update my global data.

Here is what I don't understand. All the examples I've seen show the
requestor and receiver of events all instanciated within the same method.
The listener receives as a parameter the instance of the requester.

In my case, my requester comes and goes whenever the form in opened and then
closed, but my global data is always around. How do I get the listener of my
global data to reference a requester that comes and goes with each instance
of the form?

I'm sure delegates and events are involved but I don't understand how in the
specific case.
 
J

Jeffrey Tan[MSFT]

Hi Steve,

I have added a reply to you in microsoft.public.dotnet.languages.csharp
newsgroup. Please check it there, I will follow up with you. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

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