Short story... I've "attached" some objects (class modules) to different types of nodes in a TreeView. One of these class modules has set in it a reference to a DLL that controls a part of an external device.

The problem is that this reference raise events that I need to catch in my main MDI Form, and then access to the object set in the main node of the corresponding branch, get some data from it and launch some functions.

Of course, the number of main nodes (and therefore children) isn't fixed, so I can never know how many of these objects are.

Any tip? maybe this could be done in a simple way, but I've got so many things to do that I'm out of ideas right now...