L
Larry Lard
I know that when I define my own class with an event, eg
Public Class Foo
Public Event Bar
....
behind the scenes VB creates a hidden (from IntelliSense) delegate
class BarEventHandler and an instance of that class BarEvent; and that
I can look at BarEvent.GetInvocationList to see who is watching for
this event.
That's all OK.
But now I have a (Windows Forms) Control, which has a TextChanged
event, and I want to see who's hooked up to this event. There doesn't
seem to be a TextChangedEvent (fair enough, can't ask VB.NET to create
this for everything it encounters). So how can I get the invocation
list?
(I went over to the C# group and looked for similar questions, since
they never get auto-generated stuff. But I found only this question
being asked, and no answers)
Thanks,
Public Class Foo
Public Event Bar
....
behind the scenes VB creates a hidden (from IntelliSense) delegate
class BarEventHandler and an instance of that class BarEvent; and that
I can look at BarEvent.GetInvocationList to see who is watching for
this event.
That's all OK.
But now I have a (Windows Forms) Control, which has a TextChanged
event, and I want to see who's hooked up to this event. There doesn't
seem to be a TextChangedEvent (fair enough, can't ask VB.NET to create
this for everything it encounters). So how can I get the invocation
list?
(I went over to the C# group and looked for similar questions, since
they never get auto-generated stuff. But I found only this question
being asked, and no answers)
Thanks,