PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Listening to an event
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Listening to an event
![]() |
Listening to an event |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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. -- ----------- Thanks, Steve |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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. |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

