It is possible. It isn't the easiest thing to do. Craig Boyd had written an article on it. But it refers to another article that he wrote I can't find. I successfully did the WPF thing to VFP a few weeks ago, but it isn't a pretty thing. You need to create the WPF side. Then you need to create a WinForms side. Then you need to expose that WinForms object as an ActiveX control. Then it needs to be properly signed so it can be used.
You might be able to use the WinForms RichText control. The link I need to share with you, since the Interop tool doesn't work with VS 2017, is on my laptop. I'm in the process of tracking down a production problem app, so I'll get that link for you later.
HTH, Tracy
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Paul Newton Sent: Thursday, March 14, 2019 10:58 AM To: profoxtech@leafe.com Subject: Using WPF controls on Foxpro forms
Hi all
Does anybody know (a) if this is even possible and (b) how I would go about creating a DLL that would allow me to drop a UserControl onto a VFP form. The UserControl would need to act as a container for a WPF RichTextBox together with a few buttons.
Has anybody ever done anything like this? Thanks
Paul Newton
[excessive quoting removed by server]