jmw <Jo***********@unisys.com> wrote:
I want to turn off the BeforeCheck event handler when turning on/off
checkboxes in the child nodes....so that I do not fire and respond to a lot
of unnecessary events. Somewhere along the line...my code must be adding
the eventhandler twice and removing it once. I would like to be able to
clean out the invocation list so that I know precisely where I am at any
given point in time.
You can't do that. You can, however, remove it before adding it, so you
never end up adding it twice in the first place.
Wouldn't it be better just to find out why you're adding it twice
though? You've been given an indication that you've got a bug: rather
than suppressing the symptom you can currently see, why not cure the
bug?
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too