S
Saso Zagoranski
Hi!
How can I unregister all the events registered to a control?
I have seen a piece of code in another thread, which gets all the registered
handlers for a specific event.
Let's say I have a CustomTextBox : TextBox, which has quite a lot of
events...
Do I put unregistering code for all the possible events in the Dispose
method? Or is there another way?
Could someone please provide just a simple example of this?
Thank,
Saso
How can I unregister all the events registered to a control?
I have seen a piece of code in another thread, which gets all the registered
handlers for a specific event.
Let's say I have a CustomTextBox : TextBox, which has quite a lot of
events...
Do I put unregistering code for all the possible events in the Dispose
method? Or is there another way?
Could someone please provide just a simple example of this?
Thank,
Saso