Collections and Events
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
Does anyone know how to trap events from objects in a collection? I have being trying to use delegates, but it's not trapping the events. Was this an oversight printed in the Core Reference, or is their some other trick to it?
I must be missing something in your problem statement, but here's what I'm thinking. If you add an event handler to an object and that object fires the event, your event handler will execute. Subsequently adding the object to a collection has no impact on the event mechanism. Are you trying to work with events raised by the collection itself, such as when items are added or removed?