Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding external com and net object events
Message
De
29/07/2010 05:07:12
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Binding external com and net object events
Divers
Thread ID:
01474415
Message ID:
01474415
Vues:
118
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform