|
-
October 30th, 2009, 10:07 AM
#1
unhooking event handlers
I need to manually unhook the event in my code. I have searched my code and found many references to:
this.Loaded += method
What I'm not 100% clear on is where in my code should I put the
this.loaded -= method
to ensure that I have unhooked the event handler. This is most often occuring when opening an window or a button is being created.
Does this go in my code when I close my window or at the end of the method call, a little guidence would be most appreciated.
Thanks
CHS
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|