M
Martin Hart - Memory Soft, S.L.
Hi:
How can I find out if a particular delegate has already been assigned to a
handler?
What I'm trying to do is discover if a particular delegate has been added to
the handler before I issue a:
this.KeyDown -= new
System.Windows.Forms.KeyEventHandler(this.msEditControlKeyDown);
I know I can remove it even if it has not been added previously, and no
error is generated, but if I want to add a delegate I want to make sure that
it isn't already assigned.
TIA,
Martin.
How can I find out if a particular delegate has already been assigned to a
handler?
What I'm trying to do is discover if a particular delegate has been added to
the handler before I issue a:
this.KeyDown -= new
System.Windows.Forms.KeyEventHandler(this.msEditControlKeyDown);
I know I can remove it even if it has not been added previously, and no
error is generated, but if I want to add a delegate I want to make sure that
it isn't already assigned.
TIA,
Martin.