I wish to know if exists a technique or a workaround for the following problem:

If I create an object using, for example, set obj=CreateObject("Myapp.MyClass"), VB can't intercept the events fired by the object obj. This fact happens because at compile time VB can't recognize events for a generic object variable (the keyword WithEvents in this case is not available!!!). I think that if a COM object obj fires an event, this event is trappable in a certain way ( that I don't know ) . Can anyone have suggests about ?

Thank you


------------------
Ing. Andrea Loleo
ORSI AUTOMAZIONE S.p.A.
Product Manager
16148 Genoa - Italy
Ph. (++39) 010.6983275
E-mail: [email protected]