Hi,
I am not sure I have understood your situation clearly. Based on my understanding, you want to avoid event handled method being registered multi-time. So I think you can do unregister before you register it. In C#, you can use “-=” to unregister the method while in VB, using RemoveHandler. It doesn’t matter whether you have already registered, unregister always works.
If I misunderstood you, please feel free to tell me.
Sincerely,
Kira Qian
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the
All-In-One Code Framework!