We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dynamically attaching/detaching events

Thread ID:

Created:

Updated:

Platform:

Replies:

55022 Jan 22,2007 08:50 PM UTC Jan 24,2007 07:04 PM UTC WinForms 1
loading
Tags: Grouping
James Blibo
Asked On January 22, 2007 08:50 PM UTC

This is more a windows questions than ggc question. I am dynamically attaching and detaching eventhandlers using += and -=.
However, the the event is already attached, a object null ref exception is thrown. How do I check is the event is attached or detached before add or removing it.

Administrator [Syncfusion]
Replied On January 24, 2007 07:04 PM UTC

Hi James,

Thank you for being patience.

Please refer to the following link has lot of useful articles about discusses deeply about the delegates
http://search.msdn.microsoft.com/search/default.aspx?siteId=0&tab=0&query=.Net+Delegates

Also please update us the call stack on the exception, it would help us to debug your issue at the earliest.

Kindly let us know if you need any further assistance.
Have a nice day.

Best regards,
Madhan

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;