An event is syntactic sugar. It creates a private delegate instance that
does the calling. You can get the invocation list from the event only from
*within* the class declaring the event. From outside the class, I'm afraid
you're stuck. Unless of course you own the control in which case you could
expose the invocation list on the control through a method.
--
Regards,
Tim Haughton
Agitek
http://agitek.co.uk http://blogitek.com/timhaughton
"David Chelimsky" <David
Ch*******@discussions.microsoft.com> wrote in
message news:68**********************************@microsof t.com...
I'd like to access a list of the delegates attached to an Event on a
Control. I know how to get it from a custom event and delegate - using
GetInvocationList() from the Event - but I can't get a handle on the Click
Event, for example. When I try, I get an error saying that Click can only
be used to the left of += or -=.
Please help!