How can I know if a .net event is already handled?

前端 未结 8 2137

I\'ve written some code to handle an event as follows:

AddHandler myObject.myEvent, AddressOf myFunction

It seemed that everything was work

8条回答
  •  旧时难觅i
    2020-12-31 10:06

    Either:

    1. Don't add your handler more than once.

    2. Attempt to remove the handler just prior to adding it.

提交回复
热议问题