J
JohnR
I know about AddHandler and RemoveHandler, but my requirement is a little
more complex. I pass a form to a routine. In that routine I must scan each
control, and for each "button" control I find, I must delete it's "click"
event handler. I can't see how to do this using RemoveHandler because I
don't know the name of the delegate handling the event.
So, somehow, having just the control, I need to dynamically see if it's
"click" event is being handled, and by what routine.
Is there a way to find out if a "click" event is being handled for a
control, and then removing that event handler?
BTW I'm still using .Net 1.1 if it makes a difference.
Thanks, John
more complex. I pass a form to a routine. In that routine I must scan each
control, and for each "button" control I find, I must delete it's "click"
event handler. I can't see how to do this using RemoveHandler because I
don't know the name of the delegate handling the event.
So, somehow, having just the control, I need to dynamically see if it's
"click" event is being handled, and by what routine.
Is there a way to find out if a "click" event is being handled for a
control, and then removing that event handler?
BTW I'm still using .Net 1.1 if it makes a difference.
Thanks, John