Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding external com and net object events
Message
From
29/07/2010 07:18:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
29/07/2010 05:07:12
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russia
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01474415
Message ID:
01474426
Views:
68
>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=en

Latter refers to using .Net controls in VB6 but that works with VFP forms as well.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform