G
Guest
My code assigns event handler at runtime:
/*ListView*/ lv.RetrieveVirtualItem += this.MyHandler;
This line can be executed several times with the same list box and different
handlers (to be exact, the same handler coming from different instances of an
object). It appears from debugging that each execution adds a handler
instead of overwriting it. As a result event causes the execution of all old
handlers as well as the new one.
Am I right? If yes, how can I remove the old handlers?
Gregory
/*ListView*/ lv.RetrieveVirtualItem += this.MyHandler;
This line can be executed several times with the same list box and different
handlers (to be exact, the same handler coming from different instances of an
object). It appears from debugging that each execution adds a handler
instead of overwriting it. As a result event causes the execution of all old
handlers as well as the new one.
Am I right? If yes, how can I remove the old handlers?
Gregory