Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am converting a VFP 9.0 application to .NET gradually in bits, right now i am adding .NET C# usercontrols to foxpro forms and i have been succuessfull so far. I am trying to hook foxpro event handlers to the .Net control events using a foxpro function EVENTHANDER() to no success so far ! i need to use these event listeners to know, pass data and do action in the foxpro environment based on the actions on the .NET usercontrol. Anyway with an idea ?
I am using references: http://www.sweetpotatosoftware.com/SPSBlog/PermaLink,guid,3dd24f92-a52c-4bb0-8121-c2e6e2cc4f93.aspx

You can find the i am using here http://pastebin.com/Cv1LvJb0[^]
Posted
Updated 4-Aug-11 23:41pm
v3

1 solution

Without seeing what you've done to expose the .NET controls to FoxPro, it is hard to say what needs to be done. You really need to provide your code.

Most likely either you did not set ComVisible in your build configuration or you did not mark the event as public and may be missing your com visible decorators as specified in that article. Also did you register your .NET component with COM?

Since you also have an article giving you the steps, I recommend you write an email to the author to see if the author may have suggestions for you as well. I would also recommend double checking every step shown in that tutorial and rechecking that you got everything correctly. It is too easy to have a simple typo ruin a good day. ;)
 
Share this answer
 
Comments
bherbert 5-Aug-11 5:31am    
Thanks for the advice!
You can find the sample code i am using here: http://pastebin.com/Cv1LvJb0

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900