3 Replies Latest reply on Sep 16, 2009 12:43 PM by kglad

    functions called by events run in the caller context?

    Paulo Ricca

      Hi there

      Imagine I have Class A that is listening to an Event on Class B. This listener will call Method X in the Class A. Inside Method X, "this" refers to the Instance of Class B, I'm not in the context of Class A. Isn't this a bit awkward, or am I getting everything wrong? Is there a way to make the listener call my method in the context of A?

       

      Thanks a lot for your attention, hope someone can clear my mind about this

      Paulo