Hello.
Can someone tell me what is the procedure of un-wiring an event handler from an event (if there is such a thing)?
You wire a handler to an event with the syntax:
Thank you.Code:eventSource.someEvent += new SomeEventHandler(someMethod);
Hello.
Can someone tell me what is the procedure of un-wiring an event handler from an event (if there is such a thing)?
You wire a handler to an event with the syntax:
Thank you.Code:eventSource.someEvent += new SomeEventHandler(someMethod);
There is. You need to keep a refence to the EventHandler object that you added to the Event and you unwire that object with the -= operator on the reference.