In fact, none of the handlers I put here work. Not even in an example from MSDN. WTF? The functions will execute in the context of whatever stack trace actually invokes the event, not in the context ...