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.aspThere 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