troubleshooting Question

Use .Net Windows Control in a VFP form

Avatar of guyvaio
guyvaio asked on
FoxPro.NET Programming
2 Comments1 Solution222 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
mikegagnon

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros