Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handle c# class events in VFP form
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01064083
Message ID:
01066198
Views:
21
Hi Leandro
Its not difficult to do. I did it when play with .NET.
1) Need to publish .NET component to COM
2) Using VFP Object Browser - Open COM Library.. and Drag Drop it to your program.
It will generate complete code using your public events eventhandler.

Too easy.. and too cool!!!!

Please look the Rick's article
http://www.west-wind.com/presentations/VfpDotNetInterop/DotNetFromVFP.asp

There completely written how to publish .NET component to COM.

Denis


>Hi,
>
>Did anybody already have some experience with the function EventHandler () linking external events (COM/ActiveX) to methods in VFP?
>
>I am needing to handle events of a c# class in VFP and I am not getting to find the correct form of implementing. I followed the orientations of the help, however in spite of not giving errors, nothing happens.
>
>Thanks,
>
>Leandro Macedo
Previous
Reply
Map
View

Click here to load this message in the networking platform