Avatar of guyvaio
guyvaio
 asked on

Use .Net Windows Control in a VFP form

I try to use .net Visual Component developed with Visual Studio 2005 (C#) in a Visual FoxPro form.

I've just created a new "Windows Control Library" in VS2005. I've put a RichTextBox on it. And I've make it COM visible. I've register successfully this assembly with REGASM /CODEBASE.

I a VFP form, I've put a button with this code:

thisForm.AddObject('test','olecontrol','WindowsControlLibrary2.UserControl1')
thisForm.test.visible=.T.

But nothing appears on this form.

Thanks in advance for help.

Regards,

Guy
.NET ProgrammingFoxPro

Avatar of undefined
Last Comment
guyvaio

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
mikegagnon

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
guyvaio

ASKER
I've read many information regarding the coimpatibility between VFP and .net, i've read all the articles of Rick Stahl, but just miss this one !
Many thanks,
Guy
Your help has saved me hundreds of hours of internet surfing.
fblack61