Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding external com and net object events
Message
From
29/07/2010 05:07:12
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Binding external com and net object events
Miscellaneous
Thread ID:
01474415
Message ID:
01474415
Views:
117
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
MVP-2006-2011, PHD in Math and Physics ,
host of www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.
Next
Reply
Map
View

Click here to load this message in the networking platform