Mercury.QTP.CustomServer Namespace > IRecord Interface : ReleaseEventListener Method |
If you add an Event handler using the the '+=' syntax, unsubscribe from all the events to which your process was listening. For example: SourceControl.Click += new EventHandler(this.OnClick);
Release it: public override void ReleaseEventListener() { SourceControl.Click -= new EventHandler(this.OnClick); }