>Let we have some com class , build not in net ( dll or exe)
>Let this com class object has some method having in parameters
>net object name, event name and event parameters
>Let we created object based on this com somewhere not in net and also
>created there some other but already net class object
>Now 2 questions in one
>Could we put reference on com object to some of the property of net objact?
>If yes, could we bind some events of net object to com object method, passing to it net object name ,
>event name, events parameters?
>In the result, I like com object method will fire when event in net object will fire
>if regular binding works inside one object
>button.Click += new EventHandler(this.Button_Click);
>i like to bind it to external com object, kept in some object property
>something lke this
>button.Click += new EventHandler(this.comobject.Button_Click);
>where comobject is reference on the external com object inside class property with name comobject
Vladimir,
I am not sure I exactly understood. Check:
http://1code.codeplex.com/It is an ongoing uydate to All-In-One framework. In that you would also find details of COM from or to .Net.
Also check:
http://www.microsoft.com/downloads/details.aspx?familyid=47b6e492-462b-43f2-9601-20ecd0a51f0a&displaylang=enLatter refers to using .Net controls in VB6 but that works with VFP forms as well.
Cetin