On 2004-08-26, One Handed Man ( OHM - Terry Burns ) <> wrote:
No he's asking for a list of Handler associated with the instance of a class
so he do something like.
ForEach handler in object.MyHandlers
removeHandler . . . . . . .
I'm not sure I'm putting together your two posts correctly. What's
object.MyHandlers in the above, I've never seen anything like that
before?
To the original poster, the short answer is that in the general case you
can't do this. You can't clear somebody else's invocation list (in this
case, the Button's invocation list). However, usually buttons only have
handlers on the current form and it's not too difficult to keep track of
those, so maybe that's enough for you.