Click to See Complete Forum and Search --> : How To Know if EventHandler is empty ?


Jackyquah
June 18th, 2006, 09:08 AM
Hi, I am new to Window Form Application.
I have a costum control class with eventhandler NewClick;
declaration :
event EventHandler^ NewClick;
how do I know if there is no Method in NewClick or How Many method stored in NewClick ?

wildfrog
June 18th, 2006, 10:38 AM
Maybe the Delegate.GetInvocationList (http://msdn2.microsoft.com/en-us/library/system.delegate.getinvocationlist.aspx) method can give you the answer.

- petter